org.plasmalabs.indexer.services.TransactionServiceGrpc.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.indexer.services
object TransactionServiceGrpc {
val METHOD_GET_TRANSACTION_BY_ID: _root_.io.grpc.MethodDescriptor[org.plasmalabs.indexer.services.GetTransactionByIdRequest, org.plasmalabs.indexer.services.TransactionResponse] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.indexer.services.TransactionService", "getTransactionById"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.GetTransactionByIdRequest])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.TransactionResponse])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor.getServices().get(1).getMethods().get(0)))
.build()
val METHOD_GET_TRANSACTION_BY_LOCK_ADDRESS_STREAM: _root_.io.grpc.MethodDescriptor[org.plasmalabs.indexer.services.QueryByLockAddressRequest, org.plasmalabs.indexer.services.TransactionResponse] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.indexer.services.TransactionService", "getTransactionByLockAddressStream"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.QueryByLockAddressRequest])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.TransactionResponse])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor.getServices().get(1).getMethods().get(1)))
.build()
val METHOD_GET_TXOS_BY_LOCK_ADDRESS: _root_.io.grpc.MethodDescriptor[org.plasmalabs.indexer.services.QueryByLockAddressRequest, org.plasmalabs.indexer.services.TxoLockAddressResponse] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.indexer.services.TransactionService", "getTxosByLockAddress"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.QueryByLockAddressRequest])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.TxoLockAddressResponse])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor.getServices().get(1).getMethods().get(2)))
.build()
val METHOD_GET_TXOS_BY_LOCK_ADDRESS_STREAM: _root_.io.grpc.MethodDescriptor[org.plasmalabs.indexer.services.QueryByLockAddressRequest, org.plasmalabs.indexer.services.TxoLockAddressResponse] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.indexer.services.TransactionService", "getTxosByLockAddressStream"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.QueryByLockAddressRequest])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.TxoLockAddressResponse])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor.getServices().get(1).getMethods().get(3)))
.build()
val METHOD_GET_TXOS_BY_ASSET_LABEL: _root_.io.grpc.MethodDescriptor[org.plasmalabs.indexer.services.QueryByAssetLabelRequest, org.plasmalabs.indexer.services.TxoResponse] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.indexer.services.TransactionService", "getTxosByAssetLabel"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.QueryByAssetLabelRequest])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.TxoResponse])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor.getServices().get(1).getMethods().get(4)))
.build()
val METHOD_CREATE_ON_CHAIN_TRANSACTION_INDEX: _root_.io.grpc.MethodDescriptor[org.plasmalabs.indexer.services.CreateOnChainTransactionIndexRequest, org.plasmalabs.indexer.services.CreateOnChainTransactionIndexResponse] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.indexer.services.TransactionService", "createOnChainTransactionIndex"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.CreateOnChainTransactionIndexRequest])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.CreateOnChainTransactionIndexResponse])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor.getServices().get(1).getMethods().get(5)))
.build()
val METHOD_GET_EXISTING_TRANSACTION_INDEXES: _root_.io.grpc.MethodDescriptor[org.plasmalabs.indexer.services.GetExistingTransactionIndexesRequest, org.plasmalabs.indexer.services.GetExistingTransactionIndexesResponse] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.indexer.services.TransactionService", "getExistingTransactionIndexes"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.GetExistingTransactionIndexesRequest])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.GetExistingTransactionIndexesResponse])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor.getServices().get(1).getMethods().get(6)))
.build()
val METHOD_GET_INDEXED_TRANSACTIONS: _root_.io.grpc.MethodDescriptor[org.plasmalabs.indexer.services.GetIndexedTransactionsRequest, org.plasmalabs.indexer.services.TransactionResponse] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.indexer.services.TransactionService", "getIndexedTransactions"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.GetIndexedTransactionsRequest])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.TransactionResponse])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor.getServices().get(1).getMethods().get(7)))
.build()
val METHOD_DROP_INDEX: _root_.io.grpc.MethodDescriptor[org.plasmalabs.indexer.services.DropIndexRequest, org.plasmalabs.indexer.services.DropIndexResponse] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.indexer.services.TransactionService", "dropIndex"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.DropIndexRequest])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.DropIndexResponse])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor.getServices().get(1).getMethods().get(8)))
.build()
val SERVICE: _root_.io.grpc.ServiceDescriptor =
_root_.io.grpc.ServiceDescriptor.newBuilder("org.plasmalabs.indexer.services.TransactionService")
.setSchemaDescriptor(new _root_.scalapb.grpc.ConcreteProtoFileDescriptorSupplier(org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor))
.addMethod(METHOD_GET_TRANSACTION_BY_ID)
.addMethod(METHOD_GET_TRANSACTION_BY_LOCK_ADDRESS_STREAM)
.addMethod(METHOD_GET_TXOS_BY_LOCK_ADDRESS)
.addMethod(METHOD_GET_TXOS_BY_LOCK_ADDRESS_STREAM)
.addMethod(METHOD_GET_TXOS_BY_ASSET_LABEL)
.addMethod(METHOD_CREATE_ON_CHAIN_TRANSACTION_INDEX)
.addMethod(METHOD_GET_EXISTING_TRANSACTION_INDEXES)
.addMethod(METHOD_GET_INDEXED_TRANSACTIONS)
.addMethod(METHOD_DROP_INDEX)
.build()
/** Operations related to indexerBlock contents
*/
trait TransactionService extends _root_.scalapb.grpc.AbstractService {
override def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[TransactionService] = TransactionService
/** Retrieve a transaction with the specified `id` from the configured indexer service. This returns its result when there is
* a transaction present in the indexer service with the specified id and the confidence factor of the block that contains
* the transaction is greater than or equal to the value of the `confidenceFactor` parameter.
*/
def getTransactionById(request: org.plasmalabs.indexer.services.GetTransactionByIdRequest): scala.concurrent.Future[org.plasmalabs.indexer.services.TransactionResponse]
/** Retrieve transactions that have an input or output associated with any of the specified addresses from the configured
* indexer service. This returns a stream of existing and future transactions from the indexer service with the specified id
* that are in a block with confidence factor greater than or equal to the value of the `confidenceFactor` parameter.
*/
def getTransactionByLockAddressStream(request: org.plasmalabs.indexer.services.QueryByLockAddressRequest, responseObserver: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.TransactionResponse]): _root_.scala.Unit
/** Retrieve from the configured indexer service TxOs (spent or unspent) that are associated with any of the specified
* addresses and are in a block whose confidence factor is greater than or equal to the value of the `confidenceFactor`
* parameter. This returns immediately.
*/
def getTxosByLockAddress(request: org.plasmalabs.indexer.services.QueryByLockAddressRequest): scala.concurrent.Future[org.plasmalabs.indexer.services.TxoLockAddressResponse]
/** Retrieve from the configured indexer service TxOs (spent or unspent) that are associated with any of the specified
* addresses and are in a block whose confidence factor is greater than or equal to the value of the `confidenceFactor`
* parameter. As new TxOs are added or UTxOs are spent that match the request, additional results are returned.
*/
def getTxosByLockAddressStream(request: org.plasmalabs.indexer.services.QueryByLockAddressRequest, responseObserver: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.TxoLockAddressResponse]): _root_.scala.Unit
/** Retrieve from the configured indexer service TxOs (spent or unspent) that contain the type of asset specified by the
* asset label and are in a block whose confidence factor is greater than or equal to the value of the `confidenceFactor`
* parameter. As new TxOs are added or UTxOs are spent that match the request, additional results are returned.
*/
def getTxosByAssetLabel(request: org.plasmalabs.indexer.services.QueryByAssetLabelRequest, responseObserver: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.TxoResponse]): _root_.scala.Unit
/** Create an index on transactions in the indexer database. The index will allow transactions to be found quickly based on
* the contents of their data field.
*
* This returns as soon as the index is created. After the index is created, if the `populate` parameter is true then indexer
* will asynchronously populate the index.
*/
def createOnChainTransactionIndex(request: org.plasmalabs.indexer.services.CreateOnChainTransactionIndexRequest): scala.concurrent.Future[org.plasmalabs.indexer.services.CreateOnChainTransactionIndexResponse]
/** Return a collection of `IndexSpec` objects, where each `IndexSpec` object corresponds to an index in the indexer database.
* The content of each `IndexSpec` object is the same as the `IndexSpec ` object used to create the index.
*/
def getExistingTransactionIndexes(request: org.plasmalabs.indexer.services.GetExistingTransactionIndexesRequest): scala.concurrent.Future[org.plasmalabs.indexer.services.GetExistingTransactionIndexesResponse]
/** Retrieve transactions that are included in the named index. If the `keys` parameter is supplied, then only transactions
* whose index records match the specified key values are included in the result.
*/
def getIndexedTransactions(request: org.plasmalabs.indexer.services.GetIndexedTransactionsRequest, responseObserver: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.TransactionResponse]): _root_.scala.Unit
/** Delete an index from the indexer database.
*/
def dropIndex(request: org.plasmalabs.indexer.services.DropIndexRequest): scala.concurrent.Future[org.plasmalabs.indexer.services.DropIndexResponse]
}
object TransactionService extends _root_.scalapb.grpc.ServiceCompanion[TransactionService] {
implicit def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[TransactionService] = this
def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor.getServices().get(1)
def scalaDescriptor: _root_.scalapb.descriptors.ServiceDescriptor = org.plasmalabs.indexer.services.IndexerRpcProto.scalaDescriptor.services(1)
def bindService(serviceImpl: TransactionService, executionContext: scala.concurrent.ExecutionContext): _root_.io.grpc.ServerServiceDefinition =
_root_.io.grpc.ServerServiceDefinition.builder(SERVICE)
.addMethod(
METHOD_GET_TRANSACTION_BY_ID,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.indexer.services.GetTransactionByIdRequest, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.TransactionResponse]) => {
serviceImpl.getTransactionById(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.addMethod(
METHOD_GET_TRANSACTION_BY_LOCK_ADDRESS_STREAM,
_root_.io.grpc.stub.ServerCalls.asyncServerStreamingCall((request: org.plasmalabs.indexer.services.QueryByLockAddressRequest, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.TransactionResponse]) => {
serviceImpl.getTransactionByLockAddressStream(request, observer)
}))
.addMethod(
METHOD_GET_TXOS_BY_LOCK_ADDRESS,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.indexer.services.QueryByLockAddressRequest, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.TxoLockAddressResponse]) => {
serviceImpl.getTxosByLockAddress(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.addMethod(
METHOD_GET_TXOS_BY_LOCK_ADDRESS_STREAM,
_root_.io.grpc.stub.ServerCalls.asyncServerStreamingCall((request: org.plasmalabs.indexer.services.QueryByLockAddressRequest, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.TxoLockAddressResponse]) => {
serviceImpl.getTxosByLockAddressStream(request, observer)
}))
.addMethod(
METHOD_GET_TXOS_BY_ASSET_LABEL,
_root_.io.grpc.stub.ServerCalls.asyncServerStreamingCall((request: org.plasmalabs.indexer.services.QueryByAssetLabelRequest, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.TxoResponse]) => {
serviceImpl.getTxosByAssetLabel(request, observer)
}))
.addMethod(
METHOD_CREATE_ON_CHAIN_TRANSACTION_INDEX,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.indexer.services.CreateOnChainTransactionIndexRequest, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.CreateOnChainTransactionIndexResponse]) => {
serviceImpl.createOnChainTransactionIndex(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.addMethod(
METHOD_GET_EXISTING_TRANSACTION_INDEXES,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.indexer.services.GetExistingTransactionIndexesRequest, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.GetExistingTransactionIndexesResponse]) => {
serviceImpl.getExistingTransactionIndexes(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.addMethod(
METHOD_GET_INDEXED_TRANSACTIONS,
_root_.io.grpc.stub.ServerCalls.asyncServerStreamingCall((request: org.plasmalabs.indexer.services.GetIndexedTransactionsRequest, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.TransactionResponse]) => {
serviceImpl.getIndexedTransactions(request, observer)
}))
.addMethod(
METHOD_DROP_INDEX,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.indexer.services.DropIndexRequest, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.DropIndexResponse]) => {
serviceImpl.dropIndex(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.build()
}
/** Operations related to indexerBlock contents
*/
trait TransactionServiceBlockingClient {
def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[TransactionService] = TransactionService
/** Retrieve a transaction with the specified `id` from the configured indexer service. This returns its result when there is
* a transaction present in the indexer service with the specified id and the confidence factor of the block that contains
* the transaction is greater than or equal to the value of the `confidenceFactor` parameter.
*/
def getTransactionById(request: org.plasmalabs.indexer.services.GetTransactionByIdRequest): org.plasmalabs.indexer.services.TransactionResponse
/** Retrieve transactions that have an input or output associated with any of the specified addresses from the configured
* indexer service. This returns a stream of existing and future transactions from the indexer service with the specified id
* that are in a block with confidence factor greater than or equal to the value of the `confidenceFactor` parameter.
*/
def getTransactionByLockAddressStream(request: org.plasmalabs.indexer.services.QueryByLockAddressRequest): scala.collection.Iterator[org.plasmalabs.indexer.services.TransactionResponse]
/** Retrieve from the configured indexer service TxOs (spent or unspent) that are associated with any of the specified
* addresses and are in a block whose confidence factor is greater than or equal to the value of the `confidenceFactor`
* parameter. This returns immediately.
*/
def getTxosByLockAddress(request: org.plasmalabs.indexer.services.QueryByLockAddressRequest): org.plasmalabs.indexer.services.TxoLockAddressResponse
/** Retrieve from the configured indexer service TxOs (spent or unspent) that are associated with any of the specified
* addresses and are in a block whose confidence factor is greater than or equal to the value of the `confidenceFactor`
* parameter. As new TxOs are added or UTxOs are spent that match the request, additional results are returned.
*/
def getTxosByLockAddressStream(request: org.plasmalabs.indexer.services.QueryByLockAddressRequest): scala.collection.Iterator[org.plasmalabs.indexer.services.TxoLockAddressResponse]
/** Retrieve from the configured indexer service TxOs (spent or unspent) that contain the type of asset specified by the
* asset label and are in a block whose confidence factor is greater than or equal to the value of the `confidenceFactor`
* parameter. As new TxOs are added or UTxOs are spent that match the request, additional results are returned.
*/
def getTxosByAssetLabel(request: org.plasmalabs.indexer.services.QueryByAssetLabelRequest): scala.collection.Iterator[org.plasmalabs.indexer.services.TxoResponse]
/** Create an index on transactions in the indexer database. The index will allow transactions to be found quickly based on
* the contents of their data field.
*
* This returns as soon as the index is created. After the index is created, if the `populate` parameter is true then indexer
* will asynchronously populate the index.
*/
def createOnChainTransactionIndex(request: org.plasmalabs.indexer.services.CreateOnChainTransactionIndexRequest): org.plasmalabs.indexer.services.CreateOnChainTransactionIndexResponse
/** Return a collection of `IndexSpec` objects, where each `IndexSpec` object corresponds to an index in the indexer database.
* The content of each `IndexSpec` object is the same as the `IndexSpec ` object used to create the index.
*/
def getExistingTransactionIndexes(request: org.plasmalabs.indexer.services.GetExistingTransactionIndexesRequest): org.plasmalabs.indexer.services.GetExistingTransactionIndexesResponse
/** Retrieve transactions that are included in the named index. If the `keys` parameter is supplied, then only transactions
* whose index records match the specified key values are included in the result.
*/
def getIndexedTransactions(request: org.plasmalabs.indexer.services.GetIndexedTransactionsRequest): scala.collection.Iterator[org.plasmalabs.indexer.services.TransactionResponse]
/** Delete an index from the indexer database.
*/
def dropIndex(request: org.plasmalabs.indexer.services.DropIndexRequest): org.plasmalabs.indexer.services.DropIndexResponse
}
class TransactionServiceBlockingStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[TransactionServiceBlockingStub](channel, options) with TransactionServiceBlockingClient {
/** Retrieve a transaction with the specified `id` from the configured indexer service. This returns its result when there is
* a transaction present in the indexer service with the specified id and the confidence factor of the block that contains
* the transaction is greater than or equal to the value of the `confidenceFactor` parameter.
*/
override def getTransactionById(request: org.plasmalabs.indexer.services.GetTransactionByIdRequest): org.plasmalabs.indexer.services.TransactionResponse = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_GET_TRANSACTION_BY_ID, options, request)
}
/** Retrieve transactions that have an input or output associated with any of the specified addresses from the configured
* indexer service. This returns a stream of existing and future transactions from the indexer service with the specified id
* that are in a block with confidence factor greater than or equal to the value of the `confidenceFactor` parameter.
*/
override def getTransactionByLockAddressStream(request: org.plasmalabs.indexer.services.QueryByLockAddressRequest): scala.collection.Iterator[org.plasmalabs.indexer.services.TransactionResponse] = {
_root_.scalapb.grpc.ClientCalls.blockingServerStreamingCall(channel, METHOD_GET_TRANSACTION_BY_LOCK_ADDRESS_STREAM, options, request)
}
/** Retrieve from the configured indexer service TxOs (spent or unspent) that are associated with any of the specified
* addresses and are in a block whose confidence factor is greater than or equal to the value of the `confidenceFactor`
* parameter. This returns immediately.
*/
override def getTxosByLockAddress(request: org.plasmalabs.indexer.services.QueryByLockAddressRequest): org.plasmalabs.indexer.services.TxoLockAddressResponse = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_GET_TXOS_BY_LOCK_ADDRESS, options, request)
}
/** Retrieve from the configured indexer service TxOs (spent or unspent) that are associated with any of the specified
* addresses and are in a block whose confidence factor is greater than or equal to the value of the `confidenceFactor`
* parameter. As new TxOs are added or UTxOs are spent that match the request, additional results are returned.
*/
override def getTxosByLockAddressStream(request: org.plasmalabs.indexer.services.QueryByLockAddressRequest): scala.collection.Iterator[org.plasmalabs.indexer.services.TxoLockAddressResponse] = {
_root_.scalapb.grpc.ClientCalls.blockingServerStreamingCall(channel, METHOD_GET_TXOS_BY_LOCK_ADDRESS_STREAM, options, request)
}
/** Retrieve from the configured indexer service TxOs (spent or unspent) that contain the type of asset specified by the
* asset label and are in a block whose confidence factor is greater than or equal to the value of the `confidenceFactor`
* parameter. As new TxOs are added or UTxOs are spent that match the request, additional results are returned.
*/
override def getTxosByAssetLabel(request: org.plasmalabs.indexer.services.QueryByAssetLabelRequest): scala.collection.Iterator[org.plasmalabs.indexer.services.TxoResponse] = {
_root_.scalapb.grpc.ClientCalls.blockingServerStreamingCall(channel, METHOD_GET_TXOS_BY_ASSET_LABEL, options, request)
}
/** Create an index on transactions in the indexer database. The index will allow transactions to be found quickly based on
* the contents of their data field.
*
* This returns as soon as the index is created. After the index is created, if the `populate` parameter is true then indexer
* will asynchronously populate the index.
*/
override def createOnChainTransactionIndex(request: org.plasmalabs.indexer.services.CreateOnChainTransactionIndexRequest): org.plasmalabs.indexer.services.CreateOnChainTransactionIndexResponse = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_CREATE_ON_CHAIN_TRANSACTION_INDEX, options, request)
}
/** Return a collection of `IndexSpec` objects, where each `IndexSpec` object corresponds to an index in the indexer database.
* The content of each `IndexSpec` object is the same as the `IndexSpec ` object used to create the index.
*/
override def getExistingTransactionIndexes(request: org.plasmalabs.indexer.services.GetExistingTransactionIndexesRequest): org.plasmalabs.indexer.services.GetExistingTransactionIndexesResponse = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_GET_EXISTING_TRANSACTION_INDEXES, options, request)
}
/** Retrieve transactions that are included in the named index. If the `keys` parameter is supplied, then only transactions
* whose index records match the specified key values are included in the result.
*/
override def getIndexedTransactions(request: org.plasmalabs.indexer.services.GetIndexedTransactionsRequest): scala.collection.Iterator[org.plasmalabs.indexer.services.TransactionResponse] = {
_root_.scalapb.grpc.ClientCalls.blockingServerStreamingCall(channel, METHOD_GET_INDEXED_TRANSACTIONS, options, request)
}
/** Delete an index from the indexer database.
*/
override def dropIndex(request: org.plasmalabs.indexer.services.DropIndexRequest): org.plasmalabs.indexer.services.DropIndexResponse = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_DROP_INDEX, options, request)
}
override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): TransactionServiceBlockingStub = new TransactionServiceBlockingStub(channel, options)
}
class TransactionServiceStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[TransactionServiceStub](channel, options) with TransactionService {
/** Retrieve a transaction with the specified `id` from the configured indexer service. This returns its result when there is
* a transaction present in the indexer service with the specified id and the confidence factor of the block that contains
* the transaction is greater than or equal to the value of the `confidenceFactor` parameter.
*/
override def getTransactionById(request: org.plasmalabs.indexer.services.GetTransactionByIdRequest): scala.concurrent.Future[org.plasmalabs.indexer.services.TransactionResponse] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_GET_TRANSACTION_BY_ID, options, request)
}
/** Retrieve transactions that have an input or output associated with any of the specified addresses from the configured
* indexer service. This returns a stream of existing and future transactions from the indexer service with the specified id
* that are in a block with confidence factor greater than or equal to the value of the `confidenceFactor` parameter.
*/
override def getTransactionByLockAddressStream(request: org.plasmalabs.indexer.services.QueryByLockAddressRequest, responseObserver: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.TransactionResponse]): _root_.scala.Unit = {
_root_.scalapb.grpc.ClientCalls.asyncServerStreamingCall(channel, METHOD_GET_TRANSACTION_BY_LOCK_ADDRESS_STREAM, options, request, responseObserver)
}
/** Retrieve from the configured indexer service TxOs (spent or unspent) that are associated with any of the specified
* addresses and are in a block whose confidence factor is greater than or equal to the value of the `confidenceFactor`
* parameter. This returns immediately.
*/
override def getTxosByLockAddress(request: org.plasmalabs.indexer.services.QueryByLockAddressRequest): scala.concurrent.Future[org.plasmalabs.indexer.services.TxoLockAddressResponse] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_GET_TXOS_BY_LOCK_ADDRESS, options, request)
}
/** Retrieve from the configured indexer service TxOs (spent or unspent) that are associated with any of the specified
* addresses and are in a block whose confidence factor is greater than or equal to the value of the `confidenceFactor`
* parameter. As new TxOs are added or UTxOs are spent that match the request, additional results are returned.
*/
override def getTxosByLockAddressStream(request: org.plasmalabs.indexer.services.QueryByLockAddressRequest, responseObserver: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.TxoLockAddressResponse]): _root_.scala.Unit = {
_root_.scalapb.grpc.ClientCalls.asyncServerStreamingCall(channel, METHOD_GET_TXOS_BY_LOCK_ADDRESS_STREAM, options, request, responseObserver)
}
/** Retrieve from the configured indexer service TxOs (spent or unspent) that contain the type of asset specified by the
* asset label and are in a block whose confidence factor is greater than or equal to the value of the `confidenceFactor`
* parameter. As new TxOs are added or UTxOs are spent that match the request, additional results are returned.
*/
override def getTxosByAssetLabel(request: org.plasmalabs.indexer.services.QueryByAssetLabelRequest, responseObserver: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.TxoResponse]): _root_.scala.Unit = {
_root_.scalapb.grpc.ClientCalls.asyncServerStreamingCall(channel, METHOD_GET_TXOS_BY_ASSET_LABEL, options, request, responseObserver)
}
/** Create an index on transactions in the indexer database. The index will allow transactions to be found quickly based on
* the contents of their data field.
*
* This returns as soon as the index is created. After the index is created, if the `populate` parameter is true then indexer
* will asynchronously populate the index.
*/
override def createOnChainTransactionIndex(request: org.plasmalabs.indexer.services.CreateOnChainTransactionIndexRequest): scala.concurrent.Future[org.plasmalabs.indexer.services.CreateOnChainTransactionIndexResponse] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_CREATE_ON_CHAIN_TRANSACTION_INDEX, options, request)
}
/** Return a collection of `IndexSpec` objects, where each `IndexSpec` object corresponds to an index in the indexer database.
* The content of each `IndexSpec` object is the same as the `IndexSpec ` object used to create the index.
*/
override def getExistingTransactionIndexes(request: org.plasmalabs.indexer.services.GetExistingTransactionIndexesRequest): scala.concurrent.Future[org.plasmalabs.indexer.services.GetExistingTransactionIndexesResponse] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_GET_EXISTING_TRANSACTION_INDEXES, options, request)
}
/** Retrieve transactions that are included in the named index. If the `keys` parameter is supplied, then only transactions
* whose index records match the specified key values are included in the result.
*/
override def getIndexedTransactions(request: org.plasmalabs.indexer.services.GetIndexedTransactionsRequest, responseObserver: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.TransactionResponse]): _root_.scala.Unit = {
_root_.scalapb.grpc.ClientCalls.asyncServerStreamingCall(channel, METHOD_GET_INDEXED_TRANSACTIONS, options, request, responseObserver)
}
/** Delete an index from the indexer database.
*/
override def dropIndex(request: org.plasmalabs.indexer.services.DropIndexRequest): scala.concurrent.Future[org.plasmalabs.indexer.services.DropIndexResponse] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_DROP_INDEX, options, request)
}
override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): TransactionServiceStub = new TransactionServiceStub(channel, options)
}
object TransactionServiceStub extends _root_.io.grpc.stub.AbstractStub.StubFactory[TransactionServiceStub] {
override def newStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): TransactionServiceStub = new TransactionServiceStub(channel, options)
implicit val stubFactory: _root_.io.grpc.stub.AbstractStub.StubFactory[TransactionServiceStub] = this
}
def bindService(serviceImpl: TransactionService, executionContext: scala.concurrent.ExecutionContext): _root_.io.grpc.ServerServiceDefinition = TransactionService.bindService(serviceImpl, executionContext)
def blockingStub(channel: _root_.io.grpc.Channel): TransactionServiceBlockingStub = new TransactionServiceBlockingStub(channel)
def stub(channel: _root_.io.grpc.Channel): TransactionServiceStub = new TransactionServiceStub(channel)
def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor.getServices().get(1)
}