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

org.plasmalabs.indexer.services.NetworkMetricsServiceGrpc.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 NetworkMetricsServiceGrpc {
  val METHOD_GET_TXO_STATS: _root_.io.grpc.MethodDescriptor[org.plasmalabs.indexer.services.GetTxoStatsReq, org.plasmalabs.indexer.services.GetTxoStatsRes] =
    _root_.io.grpc.MethodDescriptor.newBuilder()
      .setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
      .setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.indexer.services.NetworkMetricsService", "getTxoStats"))
      .setSampledToLocalTracing(true)
      .setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.GetTxoStatsReq])
      .setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.GetTxoStatsRes])
      .setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor.getServices().get(2).getMethods().get(0)))
      .build()
  
  val METHOD_GET_BLOCKCHAIN_SIZE_STATS: _root_.io.grpc.MethodDescriptor[org.plasmalabs.indexer.services.BlockchainSizeStatsReq, org.plasmalabs.indexer.services.BlockchainSizeStatsRes] =
    _root_.io.grpc.MethodDescriptor.newBuilder()
      .setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
      .setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.indexer.services.NetworkMetricsService", "getBlockchainSizeStats"))
      .setSampledToLocalTracing(true)
      .setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.BlockchainSizeStatsReq])
      .setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.BlockchainSizeStatsRes])
      .setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor.getServices().get(2).getMethods().get(1)))
      .build()
  
  val METHOD_GET_BLOCK_STATS: _root_.io.grpc.MethodDescriptor[org.plasmalabs.indexer.services.BlockStatsReq, org.plasmalabs.indexer.services.BlockStatsRes] =
    _root_.io.grpc.MethodDescriptor.newBuilder()
      .setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
      .setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("org.plasmalabs.indexer.services.NetworkMetricsService", "getBlockStats"))
      .setSampledToLocalTracing(true)
      .setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.BlockStatsReq])
      .setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[org.plasmalabs.indexer.services.BlockStatsRes])
      .setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor.getServices().get(2).getMethods().get(2)))
      .build()
  
  val SERVICE: _root_.io.grpc.ServiceDescriptor =
    _root_.io.grpc.ServiceDescriptor.newBuilder("org.plasmalabs.indexer.services.NetworkMetricsService")
      .setSchemaDescriptor(new _root_.scalapb.grpc.ConcreteProtoFileDescriptorSupplier(org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor))
      .addMethod(METHOD_GET_TXO_STATS)
      .addMethod(METHOD_GET_BLOCKCHAIN_SIZE_STATS)
      .addMethod(METHOD_GET_BLOCK_STATS)
      .build()
  
  /** Operations related to Network Metrics
    */
  trait NetworkMetricsService extends _root_.scalapb.grpc.AbstractService {
    override def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[NetworkMetricsService] = NetworkMetricsService
    /** Retrieve Txo Stats
      */
    def getTxoStats(request: org.plasmalabs.indexer.services.GetTxoStatsReq): scala.concurrent.Future[org.plasmalabs.indexer.services.GetTxoStatsRes]
    /** Retrieve Blockchain Size Stats
      */
    def getBlockchainSizeStats(request: org.plasmalabs.indexer.services.BlockchainSizeStatsReq): scala.concurrent.Future[org.plasmalabs.indexer.services.BlockchainSizeStatsRes]
    /** Retrieve Block Stats
      */
    def getBlockStats(request: org.plasmalabs.indexer.services.BlockStatsReq): scala.concurrent.Future[org.plasmalabs.indexer.services.BlockStatsRes]
  }
  
  object NetworkMetricsService extends _root_.scalapb.grpc.ServiceCompanion[NetworkMetricsService] {
    implicit def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[NetworkMetricsService] = this
    def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor.getServices().get(2)
    def scalaDescriptor: _root_.scalapb.descriptors.ServiceDescriptor = org.plasmalabs.indexer.services.IndexerRpcProto.scalaDescriptor.services(2)
    def bindService(serviceImpl: NetworkMetricsService, executionContext: scala.concurrent.ExecutionContext): _root_.io.grpc.ServerServiceDefinition =
      _root_.io.grpc.ServerServiceDefinition.builder(SERVICE)
      .addMethod(
        METHOD_GET_TXO_STATS,
        _root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.indexer.services.GetTxoStatsReq, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.GetTxoStatsRes]) => {
          serviceImpl.getTxoStats(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
            executionContext)
        }))
      .addMethod(
        METHOD_GET_BLOCKCHAIN_SIZE_STATS,
        _root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.indexer.services.BlockchainSizeStatsReq, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.BlockchainSizeStatsRes]) => {
          serviceImpl.getBlockchainSizeStats(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
            executionContext)
        }))
      .addMethod(
        METHOD_GET_BLOCK_STATS,
        _root_.io.grpc.stub.ServerCalls.asyncUnaryCall((request: org.plasmalabs.indexer.services.BlockStatsReq, observer: _root_.io.grpc.stub.StreamObserver[org.plasmalabs.indexer.services.BlockStatsRes]) => {
          serviceImpl.getBlockStats(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
            executionContext)
        }))
      .build()
  }
  
  /** Operations related to Network Metrics
    */
  trait NetworkMetricsServiceBlockingClient {
    def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[NetworkMetricsService] = NetworkMetricsService
    /** Retrieve Txo Stats
      */
    def getTxoStats(request: org.plasmalabs.indexer.services.GetTxoStatsReq): org.plasmalabs.indexer.services.GetTxoStatsRes
    /** Retrieve Blockchain Size Stats
      */
    def getBlockchainSizeStats(request: org.plasmalabs.indexer.services.BlockchainSizeStatsReq): org.plasmalabs.indexer.services.BlockchainSizeStatsRes
    /** Retrieve Block Stats
      */
    def getBlockStats(request: org.plasmalabs.indexer.services.BlockStatsReq): org.plasmalabs.indexer.services.BlockStatsRes
  }
  
  class NetworkMetricsServiceBlockingStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[NetworkMetricsServiceBlockingStub](channel, options) with NetworkMetricsServiceBlockingClient {
    /** Retrieve Txo Stats
      */
    override def getTxoStats(request: org.plasmalabs.indexer.services.GetTxoStatsReq): org.plasmalabs.indexer.services.GetTxoStatsRes = {
      _root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_GET_TXO_STATS, options, request)
    }
    
    /** Retrieve Blockchain Size Stats
      */
    override def getBlockchainSizeStats(request: org.plasmalabs.indexer.services.BlockchainSizeStatsReq): org.plasmalabs.indexer.services.BlockchainSizeStatsRes = {
      _root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_GET_BLOCKCHAIN_SIZE_STATS, options, request)
    }
    
    /** Retrieve Block Stats
      */
    override def getBlockStats(request: org.plasmalabs.indexer.services.BlockStatsReq): org.plasmalabs.indexer.services.BlockStatsRes = {
      _root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_GET_BLOCK_STATS, options, request)
    }
    
    override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): NetworkMetricsServiceBlockingStub = new NetworkMetricsServiceBlockingStub(channel, options)
  }
  
  class NetworkMetricsServiceStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[NetworkMetricsServiceStub](channel, options) with NetworkMetricsService {
    /** Retrieve Txo Stats
      */
    override def getTxoStats(request: org.plasmalabs.indexer.services.GetTxoStatsReq): scala.concurrent.Future[org.plasmalabs.indexer.services.GetTxoStatsRes] = {
      _root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_GET_TXO_STATS, options, request)
    }
    
    /** Retrieve Blockchain Size Stats
      */
    override def getBlockchainSizeStats(request: org.plasmalabs.indexer.services.BlockchainSizeStatsReq): scala.concurrent.Future[org.plasmalabs.indexer.services.BlockchainSizeStatsRes] = {
      _root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_GET_BLOCKCHAIN_SIZE_STATS, options, request)
    }
    
    /** Retrieve Block Stats
      */
    override def getBlockStats(request: org.plasmalabs.indexer.services.BlockStatsReq): scala.concurrent.Future[org.plasmalabs.indexer.services.BlockStatsRes] = {
      _root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_GET_BLOCK_STATS, options, request)
    }
    
    override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): NetworkMetricsServiceStub = new NetworkMetricsServiceStub(channel, options)
  }
  
  object NetworkMetricsServiceStub extends _root_.io.grpc.stub.AbstractStub.StubFactory[NetworkMetricsServiceStub] {
    override def newStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): NetworkMetricsServiceStub = new NetworkMetricsServiceStub(channel, options)
    
    implicit val stubFactory: _root_.io.grpc.stub.AbstractStub.StubFactory[NetworkMetricsServiceStub] = this
  }
  
  def bindService(serviceImpl: NetworkMetricsService, executionContext: scala.concurrent.ExecutionContext): _root_.io.grpc.ServerServiceDefinition = NetworkMetricsService.bindService(serviceImpl, executionContext)
  
  def blockingStub(channel: _root_.io.grpc.Channel): NetworkMetricsServiceBlockingStub = new NetworkMetricsServiceBlockingStub(channel)
  
  def stub(channel: _root_.io.grpc.Channel): NetworkMetricsServiceStub = new NetworkMetricsServiceStub(channel)
  
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = org.plasmalabs.indexer.services.IndexerRpcProto.javaDescriptor.getServices().get(2)
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy