org.plasmalabs.node.services.NodeRpcGrpc.scala Maven / Gradle / Ivy
The newest version!
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
//
// Protofile syntax: PROTO3
package org.plasmalabs.node.services
object NodeRpcGrpc {
val METHOD_BROADCAST_TRANSACTION: _root_.io.grpc.MethodDescriptor[org.plasmalabs.node.services.BroadcastTransactionReq, org.plasmalabs.node.services.BroadcastTransactionRes] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.node.services.NodeRpc", "BroadcastTransaction"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.BroadcastTransactionReq])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.BroadcastTransactionRes])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.node.services.NodeRpcProto.javaDescriptor.getServices().get(0).getMethods().get(0)))
.build()
val METHOD_CURRENT_MEMPOOL: _root_.io.grpc.MethodDescriptor[org.plasmalabs.node.services.CurrentMempoolReq, org.plasmalabs.node.services.CurrentMempoolRes] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.node.services.NodeRpc", "CurrentMempool"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.CurrentMempoolReq])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.CurrentMempoolRes])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.node.services.NodeRpcProto.javaDescriptor.getServices().get(0).getMethods().get(1)))
.build()
val METHOD_CURRENT_MEMPOOL_CONTAINS: _root_.io.grpc.MethodDescriptor[org.plasmalabs.node.services.CurrentMempoolContainsReq, org.plasmalabs.node.services.CurrentMempoolContainsRes] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.node.services.NodeRpc", "CurrentMempoolContains"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.CurrentMempoolContainsReq])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.CurrentMempoolContainsRes])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.node.services.NodeRpcProto.javaDescriptor.getServices().get(0).getMethods().get(2)))
.build()
val METHOD_FETCH_BLOCK_HEADER: _root_.io.grpc.MethodDescriptor[org.plasmalabs.node.services.FetchBlockHeaderReq, org.plasmalabs.node.services.FetchBlockHeaderRes] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.node.services.NodeRpc", "FetchBlockHeader"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.FetchBlockHeaderReq])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.FetchBlockHeaderRes])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.node.services.NodeRpcProto.javaDescriptor.getServices().get(0).getMethods().get(3)))
.build()
val METHOD_FETCH_BLOCK_BODY: _root_.io.grpc.MethodDescriptor[org.plasmalabs.node.services.FetchBlockBodyReq, org.plasmalabs.node.services.FetchBlockBodyRes] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.node.services.NodeRpc", "FetchBlockBody"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.FetchBlockBodyReq])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.FetchBlockBodyRes])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.node.services.NodeRpcProto.javaDescriptor.getServices().get(0).getMethods().get(4)))
.build()
val METHOD_FETCH_TRANSACTION: _root_.io.grpc.MethodDescriptor[org.plasmalabs.node.services.FetchTransactionReq, org.plasmalabs.node.services.FetchTransactionRes] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.node.services.NodeRpc", "FetchTransaction"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.FetchTransactionReq])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.FetchTransactionRes])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.node.services.NodeRpcProto.javaDescriptor.getServices().get(0).getMethods().get(5)))
.build()
val METHOD_FETCH_BLOCK_ID_AT_HEIGHT: _root_.io.grpc.MethodDescriptor[org.plasmalabs.node.services.FetchBlockIdAtHeightReq, org.plasmalabs.node.services.FetchBlockIdAtHeightRes] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.node.services.NodeRpc", "FetchBlockIdAtHeight"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.FetchBlockIdAtHeightReq])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.FetchBlockIdAtHeightRes])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.node.services.NodeRpcProto.javaDescriptor.getServices().get(0).getMethods().get(6)))
.build()
val METHOD_FETCH_BLOCK_ID_AT_DEPTH: _root_.io.grpc.MethodDescriptor[org.plasmalabs.node.services.FetchBlockIdAtDepthReq, org.plasmalabs.node.services.FetchBlockIdAtDepthRes] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.node.services.NodeRpc", "FetchBlockIdAtDepth"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.FetchBlockIdAtDepthReq])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.FetchBlockIdAtDepthRes])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.node.services.NodeRpcProto.javaDescriptor.getServices().get(0).getMethods().get(7)))
.build()
val METHOD_SYNCHRONIZATION_TRAVERSAL: _root_.io.grpc.MethodDescriptor[org.plasmalabs.node.services.SynchronizationTraversalReq, org.plasmalabs.node.services.SynchronizationTraversalRes] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.node.services.NodeRpc", "SynchronizationTraversal"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.SynchronizationTraversalReq])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.SynchronizationTraversalRes])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.node.services.NodeRpcProto.javaDescriptor.getServices().get(0).getMethods().get(8)))
.build()
val METHOD_FETCH_NODE_CONFIG: _root_.io.grpc.MethodDescriptor[org.plasmalabs.node.services.FetchNodeConfigReq, org.plasmalabs.node.services.FetchNodeConfigRes] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.node.services.NodeRpc", "FetchNodeConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.FetchNodeConfigReq])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.FetchNodeConfigRes])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.node.services.NodeRpcProto.javaDescriptor.getServices().get(0).getMethods().get(9)))
.build()
val METHOD_FETCH_EPOCH_DATA: _root_.io.grpc.MethodDescriptor[org.plasmalabs.node.services.FetchEpochDataReq, org.plasmalabs.node.services.FetchEpochDataRes] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.node.services.NodeRpc", "FetchEpochData"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.FetchEpochDataReq])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.node.services.FetchEpochDataRes])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.node.services.NodeRpcProto.javaDescriptor.getServices().get(0).getMethods().get(10)))
.build()
val SERVICE: _root_.io.grpc.ServiceDescriptor =
_root_.io.grpc.ServiceDescriptor.newBuilder("org.plasmalabs.node.services.NodeRpc")
.setSchemaDescriptor(new _root_.scalapb.grpc.ConcreteProtoFileDescriptorSupplier(org.plasmalabs.node.services.NodeRpcProto.javaDescriptor))
.addMethod(METHOD_BROADCAST_TRANSACTION)
.addMethod(METHOD_CURRENT_MEMPOOL)
.addMethod(METHOD_CURRENT_MEMPOOL_CONTAINS)
.addMethod(METHOD_FETCH_BLOCK_HEADER)
.addMethod(METHOD_FETCH_BLOCK_BODY)
.addMethod(METHOD_FETCH_TRANSACTION)
.addMethod(METHOD_FETCH_BLOCK_ID_AT_HEIGHT)
.addMethod(METHOD_FETCH_BLOCK_ID_AT_DEPTH)
.addMethod(METHOD_SYNCHRONIZATION_TRAVERSAL)
.addMethod(METHOD_FETCH_NODE_CONFIG)
.addMethod(METHOD_FETCH_EPOCH_DATA)
.build()
trait NodeRpc extends _root_.scalapb.grpc.AbstractService {
override def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[NodeRpc] = NodeRpc
/** Submit a proven Transaction to the node
*/
def broadcastTransaction(request: org.plasmalabs.node.services.BroadcastTransactionReq): scala.concurrent.Future[org.plasmalabs.node.services.BroadcastTransactionRes]
/** Read the contents of the node's mempool
*/
def currentMempool(request: org.plasmalabs.node.services.CurrentMempoolReq): scala.concurrent.Future[org.plasmalabs.node.services.CurrentMempoolRes]
/** Check the content of the node's mempool and return if a Transaction Id exists
*/
def currentMempoolContains(request: org.plasmalabs.node.services.CurrentMempoolContainsReq): scala.concurrent.Future[org.plasmalabs.node.services.CurrentMempoolContainsRes]
/** retrieve a Block Header by its ID
*/
def fetchBlockHeader(request: org.plasmalabs.node.services.FetchBlockHeaderReq): scala.concurrent.Future[org.plasmalabs.node.services.FetchBlockHeaderRes]
/** retrieve a Block Body by its ID
*/
def fetchBlockBody(request: org.plasmalabs.node.services.FetchBlockBodyReq): scala.concurrent.Future[org.plasmalabs.node.services.FetchBlockBodyRes]
/** retrieve a Transaction by its ID
*/
def fetchTransaction(request: org.plasmalabs.node.services.FetchTransactionReq): scala.concurrent.Future[org.plasmalabs.node.services.FetchTransactionRes]
/** retrieve the Block ID associated with a height, according to the node's canonical chain
*/
def fetchBlockIdAtHeight(request: org.plasmalabs.node.services.FetchBlockIdAtHeightReq): scala.concurrent.Future[org.plasmalabs.node.services.FetchBlockIdAtHeightRes]
/** retrieve the Block ID associated with a depth, according to the node's canonical chain
*/
def fetchBlockIdAtDepth(request: org.plasmalabs.node.services.FetchBlockIdAtDepthReq): scala.concurrent.Future[org.plasmalabs.node.services.FetchBlockIdAtDepthRes]
/** retrieve a stream of changes to the canonical head of the chain.
*/
def synchronizationTraversal(request: org.plasmalabs.node.services.SynchronizationTraversalReq, responseObserver: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.node.services.SynchronizationTraversalRes]): _root_.scala.Unit
/** retrieve a stream of node's protocol configuration
*/
def fetchNodeConfig(request: org.plasmalabs.node.services.FetchNodeConfigReq, responseObserver: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.node.services.FetchNodeConfigRes]): _root_.scala.Unit
/** retrieve epoch data content
*/
def fetchEpochData(request: org.plasmalabs.node.services.FetchEpochDataReq): scala.concurrent.Future[org.plasmalabs.node.services.FetchEpochDataRes]
}
object NodeRpc extends _root_.scalapb.grpc.ServiceCompanion[NodeRpc] {
implicit def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[NodeRpc] = this
def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = org.plasmalabs.node.services.NodeRpcProto.javaDescriptor.getServices().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.ServiceDescriptor = org.plasmalabs.node.services.NodeRpcProto.scalaDescriptor.services(0)
def bindService(serviceImpl: NodeRpc, executionContext: scala.concurrent.ExecutionContext): _root_.io.grpc.ServerServiceDefinition =
_root_.io.grpc.ServerServiceDefinition.builder(SERVICE)
.addMethod(
METHOD_BROADCAST_TRANSACTION,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.node.services.BroadcastTransactionReq, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.node.services.BroadcastTransactionRes]) => {
serviceImpl.broadcastTransaction(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.addMethod(
METHOD_CURRENT_MEMPOOL,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.node.services.CurrentMempoolReq, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.node.services.CurrentMempoolRes]) => {
serviceImpl.currentMempool(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.addMethod(
METHOD_CURRENT_MEMPOOL_CONTAINS,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.node.services.CurrentMempoolContainsReq, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.node.services.CurrentMempoolContainsRes]) => {
serviceImpl.currentMempoolContains(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.addMethod(
METHOD_FETCH_BLOCK_HEADER,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.node.services.FetchBlockHeaderReq, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.node.services.FetchBlockHeaderRes]) => {
serviceImpl.fetchBlockHeader(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.addMethod(
METHOD_FETCH_BLOCK_BODY,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.node.services.FetchBlockBodyReq, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.node.services.FetchBlockBodyRes]) => {
serviceImpl.fetchBlockBody(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.addMethod(
METHOD_FETCH_TRANSACTION,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.node.services.FetchTransactionReq, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.node.services.FetchTransactionRes]) => {
serviceImpl.fetchTransaction(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.addMethod(
METHOD_FETCH_BLOCK_ID_AT_HEIGHT,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.node.services.FetchBlockIdAtHeightReq, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.node.services.FetchBlockIdAtHeightRes]) => {
serviceImpl.fetchBlockIdAtHeight(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.addMethod(
METHOD_FETCH_BLOCK_ID_AT_DEPTH,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.node.services.FetchBlockIdAtDepthReq, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.node.services.FetchBlockIdAtDepthRes]) => {
serviceImpl.fetchBlockIdAtDepth(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.addMethod(
METHOD_SYNCHRONIZATION_TRAVERSAL,
_root_.io.grpc.stub.ServerCalls.asyncServerStreamingCall((request: org.plasmalabs.node.services.SynchronizationTraversalReq, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.node.services.SynchronizationTraversalRes]) => {
serviceImpl.synchronizationTraversal(request, observer)
}))
.addMethod(
METHOD_FETCH_NODE_CONFIG,
_root_.io.grpc.stub.ServerCalls.asyncServerStreamingCall((request: org.plasmalabs.node.services.FetchNodeConfigReq, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.node.services.FetchNodeConfigRes]) => {
serviceImpl.fetchNodeConfig(request, observer)
}))
.addMethod(
METHOD_FETCH_EPOCH_DATA,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.node.services.FetchEpochDataReq, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.node.services.FetchEpochDataRes]) => {
serviceImpl.fetchEpochData(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.build()
}
trait NodeRpcBlockingClient {
def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[NodeRpc] = NodeRpc
/** Submit a proven Transaction to the node
*/
def broadcastTransaction(request: org.plasmalabs.node.services.BroadcastTransactionReq): org.plasmalabs.node.services.BroadcastTransactionRes
/** Read the contents of the node's mempool
*/
def currentMempool(request: org.plasmalabs.node.services.CurrentMempoolReq): org.plasmalabs.node.services.CurrentMempoolRes
/** Check the content of the node's mempool and return if a Transaction Id exists
*/
def currentMempoolContains(request: org.plasmalabs.node.services.CurrentMempoolContainsReq): org.plasmalabs.node.services.CurrentMempoolContainsRes
/** retrieve a Block Header by its ID
*/
def fetchBlockHeader(request: org.plasmalabs.node.services.FetchBlockHeaderReq): org.plasmalabs.node.services.FetchBlockHeaderRes
/** retrieve a Block Body by its ID
*/
def fetchBlockBody(request: org.plasmalabs.node.services.FetchBlockBodyReq): org.plasmalabs.node.services.FetchBlockBodyRes
/** retrieve a Transaction by its ID
*/
def fetchTransaction(request: org.plasmalabs.node.services.FetchTransactionReq): org.plasmalabs.node.services.FetchTransactionRes
/** retrieve the Block ID associated with a height, according to the node's canonical chain
*/
def fetchBlockIdAtHeight(request: org.plasmalabs.node.services.FetchBlockIdAtHeightReq): org.plasmalabs.node.services.FetchBlockIdAtHeightRes
/** retrieve the Block ID associated with a depth, according to the node's canonical chain
*/
def fetchBlockIdAtDepth(request: org.plasmalabs.node.services.FetchBlockIdAtDepthReq): org.plasmalabs.node.services.FetchBlockIdAtDepthRes
/** retrieve a stream of changes to the canonical head of the chain.
*/
def synchronizationTraversal(request: org.plasmalabs.node.services.SynchronizationTraversalReq): scala.collection.Iterator[org.plasmalabs.node.services.SynchronizationTraversalRes]
/** retrieve a stream of node's protocol configuration
*/
def fetchNodeConfig(request: org.plasmalabs.node.services.FetchNodeConfigReq): scala.collection.Iterator[org.plasmalabs.node.services.FetchNodeConfigRes]
/** retrieve epoch data content
*/
def fetchEpochData(request: org.plasmalabs.node.services.FetchEpochDataReq): org.plasmalabs.node.services.FetchEpochDataRes
}
class NodeRpcBlockingStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[NodeRpcBlockingStub](channel, options) with NodeRpcBlockingClient {
/** Submit a proven Transaction to the node
*/
override def broadcastTransaction(request: org.plasmalabs.node.services.BroadcastTransactionReq): org.plasmalabs.node.services.BroadcastTransactionRes = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_BROADCAST_TRANSACTION, options, request)
}
/** Read the contents of the node's mempool
*/
override def currentMempool(request: org.plasmalabs.node.services.CurrentMempoolReq): org.plasmalabs.node.services.CurrentMempoolRes = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_CURRENT_MEMPOOL, options, request)
}
/** Check the content of the node's mempool and return if a Transaction Id exists
*/
override def currentMempoolContains(request: org.plasmalabs.node.services.CurrentMempoolContainsReq): org.plasmalabs.node.services.CurrentMempoolContainsRes = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_CURRENT_MEMPOOL_CONTAINS, options, request)
}
/** retrieve a Block Header by its ID
*/
override def fetchBlockHeader(request: org.plasmalabs.node.services.FetchBlockHeaderReq): org.plasmalabs.node.services.FetchBlockHeaderRes = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_FETCH_BLOCK_HEADER, options, request)
}
/** retrieve a Block Body by its ID
*/
override def fetchBlockBody(request: org.plasmalabs.node.services.FetchBlockBodyReq): org.plasmalabs.node.services.FetchBlockBodyRes = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_FETCH_BLOCK_BODY, options, request)
}
/** retrieve a Transaction by its ID
*/
override def fetchTransaction(request: org.plasmalabs.node.services.FetchTransactionReq): org.plasmalabs.node.services.FetchTransactionRes = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_FETCH_TRANSACTION, options, request)
}
/** retrieve the Block ID associated with a height, according to the node's canonical chain
*/
override def fetchBlockIdAtHeight(request: org.plasmalabs.node.services.FetchBlockIdAtHeightReq): org.plasmalabs.node.services.FetchBlockIdAtHeightRes = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_FETCH_BLOCK_ID_AT_HEIGHT, options, request)
}
/** retrieve the Block ID associated with a depth, according to the node's canonical chain
*/
override def fetchBlockIdAtDepth(request: org.plasmalabs.node.services.FetchBlockIdAtDepthReq): org.plasmalabs.node.services.FetchBlockIdAtDepthRes = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_FETCH_BLOCK_ID_AT_DEPTH, options, request)
}
/** retrieve a stream of changes to the canonical head of the chain.
*/
override def synchronizationTraversal(request: org.plasmalabs.node.services.SynchronizationTraversalReq): scala.collection.Iterator[org.plasmalabs.node.services.SynchronizationTraversalRes] = {
_root_.scalapb.grpc.ClientCalls.blockingServerStreamingCall(channel, METHOD_SYNCHRONIZATION_TRAVERSAL, options, request)
}
/** retrieve a stream of node's protocol configuration
*/
override def fetchNodeConfig(request: org.plasmalabs.node.services.FetchNodeConfigReq): scala.collection.Iterator[org.plasmalabs.node.services.FetchNodeConfigRes] = {
_root_.scalapb.grpc.ClientCalls.blockingServerStreamingCall(channel, METHOD_FETCH_NODE_CONFIG, options, request)
}
/** retrieve epoch data content
*/
override def fetchEpochData(request: org.plasmalabs.node.services.FetchEpochDataReq): org.plasmalabs.node.services.FetchEpochDataRes = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_FETCH_EPOCH_DATA, options, request)
}
override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): NodeRpcBlockingStub = new NodeRpcBlockingStub(channel, options)
}
class NodeRpcStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[NodeRpcStub](channel, options) with NodeRpc {
/** Submit a proven Transaction to the node
*/
override def broadcastTransaction(request: org.plasmalabs.node.services.BroadcastTransactionReq): scala.concurrent.Future[org.plasmalabs.node.services.BroadcastTransactionRes] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_BROADCAST_TRANSACTION, options, request)
}
/** Read the contents of the node's mempool
*/
override def currentMempool(request: org.plasmalabs.node.services.CurrentMempoolReq): scala.concurrent.Future[org.plasmalabs.node.services.CurrentMempoolRes] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_CURRENT_MEMPOOL, options, request)
}
/** Check the content of the node's mempool and return if a Transaction Id exists
*/
override def currentMempoolContains(request: org.plasmalabs.node.services.CurrentMempoolContainsReq): scala.concurrent.Future[org.plasmalabs.node.services.CurrentMempoolContainsRes] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_CURRENT_MEMPOOL_CONTAINS, options, request)
}
/** retrieve a Block Header by its ID
*/
override def fetchBlockHeader(request: org.plasmalabs.node.services.FetchBlockHeaderReq): scala.concurrent.Future[org.plasmalabs.node.services.FetchBlockHeaderRes] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_FETCH_BLOCK_HEADER, options, request)
}
/** retrieve a Block Body by its ID
*/
override def fetchBlockBody(request: org.plasmalabs.node.services.FetchBlockBodyReq): scala.concurrent.Future[org.plasmalabs.node.services.FetchBlockBodyRes] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_FETCH_BLOCK_BODY, options, request)
}
/** retrieve a Transaction by its ID
*/
override def fetchTransaction(request: org.plasmalabs.node.services.FetchTransactionReq): scala.concurrent.Future[org.plasmalabs.node.services.FetchTransactionRes] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_FETCH_TRANSACTION, options, request)
}
/** retrieve the Block ID associated with a height, according to the node's canonical chain
*/
override def fetchBlockIdAtHeight(request: org.plasmalabs.node.services.FetchBlockIdAtHeightReq): scala.concurrent.Future[org.plasmalabs.node.services.FetchBlockIdAtHeightRes] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_FETCH_BLOCK_ID_AT_HEIGHT, options, request)
}
/** retrieve the Block ID associated with a depth, according to the node's canonical chain
*/
override def fetchBlockIdAtDepth(request: org.plasmalabs.node.services.FetchBlockIdAtDepthReq): scala.concurrent.Future[org.plasmalabs.node.services.FetchBlockIdAtDepthRes] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_FETCH_BLOCK_ID_AT_DEPTH, options, request)
}
/** retrieve a stream of changes to the canonical head of the chain.
*/
override def synchronizationTraversal(request: org.plasmalabs.node.services.SynchronizationTraversalReq, responseObserver: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.node.services.SynchronizationTraversalRes]): _root_.scala.Unit = {
_root_.scalapb.grpc.ClientCalls.asyncServerStreamingCall(channel, METHOD_SYNCHRONIZATION_TRAVERSAL, options, request, responseObserver)
}
/** retrieve a stream of node's protocol configuration
*/
override def fetchNodeConfig(request: org.plasmalabs.node.services.FetchNodeConfigReq, responseObserver: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.node.services.FetchNodeConfigRes]): _root_.scala.Unit = {
_root_.scalapb.grpc.ClientCalls.asyncServerStreamingCall(channel, METHOD_FETCH_NODE_CONFIG, options, request, responseObserver)
}
/** retrieve epoch data content
*/
override def fetchEpochData(request: org.plasmalabs.node.services.FetchEpochDataReq): scala.concurrent.Future[org.plasmalabs.node.services.FetchEpochDataRes] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_FETCH_EPOCH_DATA, options, request)
}
override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): NodeRpcStub = new NodeRpcStub(channel, options)
}
object NodeRpcStub extends _root_.io.grpc.stub.AbstractStub.StubFactory[NodeRpcStub] {
override def newStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): NodeRpcStub = new NodeRpcStub(channel, options)
implicit val stubFactory: _root_.io.grpc.stub.AbstractStub.StubFactory[NodeRpcStub] = this
}
def bindService(serviceImpl: NodeRpc, executionContext: scala.concurrent.ExecutionContext): _root_.io.grpc.ServerServiceDefinition = NodeRpc.bindService(serviceImpl, executionContext)
def blockingStub(channel: _root_.io.grpc.Channel): NodeRpcBlockingStub = new NodeRpcBlockingStub(channel)
def stub(channel: _root_.io.grpc.Channel): NodeRpcStub = new NodeRpcStub(channel)
def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = org.plasmalabs.node.services.NodeRpcProto.javaDescriptor.getServices().get(0)
}