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

types.AergoRPCServiceGrpc Maven / Gradle / Ivy

The newest version!
package types;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 **
 * AergoRPCService is the main RPC service providing endpoints to interact 
 * with the node and blockchain. If not otherwise noted, methods are unary requests.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.43.2)", comments = "Source: rpc.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AergoRPCServiceGrpc { private AergoRPCServiceGrpc() {} public static final String SERVICE_NAME = "types.AergoRPCService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getNodeStateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "NodeState", requestType = types.Rpc.NodeReq.class, responseType = types.Rpc.SingleBytes.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getNodeStateMethod() { io.grpc.MethodDescriptor getNodeStateMethod; if ((getNodeStateMethod = AergoRPCServiceGrpc.getNodeStateMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getNodeStateMethod = AergoRPCServiceGrpc.getNodeStateMethod) == null) { AergoRPCServiceGrpc.getNodeStateMethod = getNodeStateMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "NodeState")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.NodeReq.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.SingleBytes.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("NodeState")) .build(); } } } return getNodeStateMethod; } private static volatile io.grpc.MethodDescriptor getMetricMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Metric", requestType = types.Metric.MetricsRequest.class, responseType = types.Metric.Metrics.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getMetricMethod() { io.grpc.MethodDescriptor getMetricMethod; if ((getMetricMethod = AergoRPCServiceGrpc.getMetricMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getMetricMethod = AergoRPCServiceGrpc.getMetricMethod) == null) { AergoRPCServiceGrpc.getMetricMethod = getMetricMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Metric")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Metric.MetricsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Metric.Metrics.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("Metric")) .build(); } } } return getMetricMethod; } private static volatile io.grpc.MethodDescriptor getBlockchainMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Blockchain", requestType = types.Rpc.Empty.class, responseType = types.Rpc.BlockchainStatus.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getBlockchainMethod() { io.grpc.MethodDescriptor getBlockchainMethod; if ((getBlockchainMethod = AergoRPCServiceGrpc.getBlockchainMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getBlockchainMethod = AergoRPCServiceGrpc.getBlockchainMethod) == null) { AergoRPCServiceGrpc.getBlockchainMethod = getBlockchainMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Blockchain")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.Empty.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.BlockchainStatus.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("Blockchain")) .build(); } } } return getBlockchainMethod; } private static volatile io.grpc.MethodDescriptor getGetChainInfoMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetChainInfo", requestType = types.Rpc.Empty.class, responseType = types.Rpc.ChainInfo.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetChainInfoMethod() { io.grpc.MethodDescriptor getGetChainInfoMethod; if ((getGetChainInfoMethod = AergoRPCServiceGrpc.getGetChainInfoMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetChainInfoMethod = AergoRPCServiceGrpc.getGetChainInfoMethod) == null) { AergoRPCServiceGrpc.getGetChainInfoMethod = getGetChainInfoMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetChainInfo")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.Empty.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.ChainInfo.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetChainInfo")) .build(); } } } return getGetChainInfoMethod; } private static volatile io.grpc.MethodDescriptor getChainStatMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ChainStat", requestType = types.Rpc.Empty.class, responseType = types.Rpc.ChainStats.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getChainStatMethod() { io.grpc.MethodDescriptor getChainStatMethod; if ((getChainStatMethod = AergoRPCServiceGrpc.getChainStatMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getChainStatMethod = AergoRPCServiceGrpc.getChainStatMethod) == null) { AergoRPCServiceGrpc.getChainStatMethod = getChainStatMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ChainStat")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.Empty.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.ChainStats.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ChainStat")) .build(); } } } return getChainStatMethod; } private static volatile io.grpc.MethodDescriptor getListBlockHeadersMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListBlockHeaders", requestType = types.Rpc.ListParams.class, responseType = types.Rpc.BlockHeaderList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListBlockHeadersMethod() { io.grpc.MethodDescriptor getListBlockHeadersMethod; if ((getListBlockHeadersMethod = AergoRPCServiceGrpc.getListBlockHeadersMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getListBlockHeadersMethod = AergoRPCServiceGrpc.getListBlockHeadersMethod) == null) { AergoRPCServiceGrpc.getListBlockHeadersMethod = getListBlockHeadersMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBlockHeaders")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.ListParams.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.BlockHeaderList.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ListBlockHeaders")) .build(); } } } return getListBlockHeadersMethod; } private static volatile io.grpc.MethodDescriptor getListBlockMetadataMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListBlockMetadata", requestType = types.Rpc.ListParams.class, responseType = types.Rpc.BlockMetadataList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListBlockMetadataMethod() { io.grpc.MethodDescriptor getListBlockMetadataMethod; if ((getListBlockMetadataMethod = AergoRPCServiceGrpc.getListBlockMetadataMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getListBlockMetadataMethod = AergoRPCServiceGrpc.getListBlockMetadataMethod) == null) { AergoRPCServiceGrpc.getListBlockMetadataMethod = getListBlockMetadataMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBlockMetadata")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.ListParams.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.BlockMetadataList.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ListBlockMetadata")) .build(); } } } return getListBlockMetadataMethod; } private static volatile io.grpc.MethodDescriptor getListBlockStreamMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListBlockStream", requestType = types.Rpc.Empty.class, responseType = types.Blockchain.Block.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) public static io.grpc.MethodDescriptor getListBlockStreamMethod() { io.grpc.MethodDescriptor getListBlockStreamMethod; if ((getListBlockStreamMethod = AergoRPCServiceGrpc.getListBlockStreamMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getListBlockStreamMethod = AergoRPCServiceGrpc.getListBlockStreamMethod) == null) { AergoRPCServiceGrpc.getListBlockStreamMethod = getListBlockStreamMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBlockStream")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.Empty.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.Block.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ListBlockStream")) .build(); } } } return getListBlockStreamMethod; } private static volatile io.grpc.MethodDescriptor getListBlockMetadataStreamMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListBlockMetadataStream", requestType = types.Rpc.Empty.class, responseType = types.Rpc.BlockMetadata.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) public static io.grpc.MethodDescriptor getListBlockMetadataStreamMethod() { io.grpc.MethodDescriptor getListBlockMetadataStreamMethod; if ((getListBlockMetadataStreamMethod = AergoRPCServiceGrpc.getListBlockMetadataStreamMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getListBlockMetadataStreamMethod = AergoRPCServiceGrpc.getListBlockMetadataStreamMethod) == null) { AergoRPCServiceGrpc.getListBlockMetadataStreamMethod = getListBlockMetadataStreamMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBlockMetadataStream")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.Empty.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.BlockMetadata.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ListBlockMetadataStream")) .build(); } } } return getListBlockMetadataStreamMethod; } private static volatile io.grpc.MethodDescriptor getGetBlockMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetBlock", requestType = types.Rpc.SingleBytes.class, responseType = types.Blockchain.Block.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetBlockMethod() { io.grpc.MethodDescriptor getGetBlockMethod; if ((getGetBlockMethod = AergoRPCServiceGrpc.getGetBlockMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetBlockMethod = AergoRPCServiceGrpc.getGetBlockMethod) == null) { AergoRPCServiceGrpc.getGetBlockMethod = getGetBlockMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlock")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.SingleBytes.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.Block.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetBlock")) .build(); } } } return getGetBlockMethod; } private static volatile io.grpc.MethodDescriptor getGetBlockMetadataMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetBlockMetadata", requestType = types.Rpc.SingleBytes.class, responseType = types.Rpc.BlockMetadata.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetBlockMetadataMethod() { io.grpc.MethodDescriptor getGetBlockMetadataMethod; if ((getGetBlockMetadataMethod = AergoRPCServiceGrpc.getGetBlockMetadataMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetBlockMetadataMethod = AergoRPCServiceGrpc.getGetBlockMetadataMethod) == null) { AergoRPCServiceGrpc.getGetBlockMetadataMethod = getGetBlockMetadataMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockMetadata")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.SingleBytes.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.BlockMetadata.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetBlockMetadata")) .build(); } } } return getGetBlockMetadataMethod; } private static volatile io.grpc.MethodDescriptor getGetBlockBodyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetBlockBody", requestType = types.Rpc.BlockBodyParams.class, responseType = types.Rpc.BlockBodyPaged.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetBlockBodyMethod() { io.grpc.MethodDescriptor getGetBlockBodyMethod; if ((getGetBlockBodyMethod = AergoRPCServiceGrpc.getGetBlockBodyMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetBlockBodyMethod = AergoRPCServiceGrpc.getGetBlockBodyMethod) == null) { AergoRPCServiceGrpc.getGetBlockBodyMethod = getGetBlockBodyMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockBody")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.BlockBodyParams.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.BlockBodyPaged.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetBlockBody")) .build(); } } } return getGetBlockBodyMethod; } private static volatile io.grpc.MethodDescriptor getGetTXMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetTX", requestType = types.Rpc.SingleBytes.class, responseType = types.Blockchain.Tx.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetTXMethod() { io.grpc.MethodDescriptor getGetTXMethod; if ((getGetTXMethod = AergoRPCServiceGrpc.getGetTXMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetTXMethod = AergoRPCServiceGrpc.getGetTXMethod) == null) { AergoRPCServiceGrpc.getGetTXMethod = getGetTXMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTX")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.SingleBytes.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.Tx.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetTX")) .build(); } } } return getGetTXMethod; } private static volatile io.grpc.MethodDescriptor getGetBlockTXMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetBlockTX", requestType = types.Rpc.SingleBytes.class, responseType = types.Blockchain.TxInBlock.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetBlockTXMethod() { io.grpc.MethodDescriptor getGetBlockTXMethod; if ((getGetBlockTXMethod = AergoRPCServiceGrpc.getGetBlockTXMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetBlockTXMethod = AergoRPCServiceGrpc.getGetBlockTXMethod) == null) { AergoRPCServiceGrpc.getGetBlockTXMethod = getGetBlockTXMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockTX")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.SingleBytes.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.TxInBlock.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetBlockTX")) .build(); } } } return getGetBlockTXMethod; } private static volatile io.grpc.MethodDescriptor getGetReceiptMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetReceipt", requestType = types.Rpc.SingleBytes.class, responseType = types.Blockchain.Receipt.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetReceiptMethod() { io.grpc.MethodDescriptor getGetReceiptMethod; if ((getGetReceiptMethod = AergoRPCServiceGrpc.getGetReceiptMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetReceiptMethod = AergoRPCServiceGrpc.getGetReceiptMethod) == null) { AergoRPCServiceGrpc.getGetReceiptMethod = getGetReceiptMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReceipt")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.SingleBytes.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.Receipt.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetReceipt")) .build(); } } } return getGetReceiptMethod; } private static volatile io.grpc.MethodDescriptor getGetABIMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetABI", requestType = types.Rpc.SingleBytes.class, responseType = types.Blockchain.ABI.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetABIMethod() { io.grpc.MethodDescriptor getGetABIMethod; if ((getGetABIMethod = AergoRPCServiceGrpc.getGetABIMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetABIMethod = AergoRPCServiceGrpc.getGetABIMethod) == null) { AergoRPCServiceGrpc.getGetABIMethod = getGetABIMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetABI")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.SingleBytes.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.ABI.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetABI")) .build(); } } } return getGetABIMethod; } private static volatile io.grpc.MethodDescriptor getSendTXMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SendTX", requestType = types.Blockchain.Tx.class, responseType = types.Rpc.CommitResult.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSendTXMethod() { io.grpc.MethodDescriptor getSendTXMethod; if ((getSendTXMethod = AergoRPCServiceGrpc.getSendTXMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getSendTXMethod = AergoRPCServiceGrpc.getSendTXMethod) == null) { AergoRPCServiceGrpc.getSendTXMethod = getSendTXMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendTX")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.Tx.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.CommitResult.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("SendTX")) .build(); } } } return getSendTXMethod; } private static volatile io.grpc.MethodDescriptor getSignTXMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SignTX", requestType = types.Blockchain.Tx.class, responseType = types.Blockchain.Tx.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSignTXMethod() { io.grpc.MethodDescriptor getSignTXMethod; if ((getSignTXMethod = AergoRPCServiceGrpc.getSignTXMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getSignTXMethod = AergoRPCServiceGrpc.getSignTXMethod) == null) { AergoRPCServiceGrpc.getSignTXMethod = getSignTXMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SignTX")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.Tx.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.Tx.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("SignTX")) .build(); } } } return getSignTXMethod; } private static volatile io.grpc.MethodDescriptor getVerifyTXMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "VerifyTX", requestType = types.Blockchain.Tx.class, responseType = types.Rpc.VerifyResult.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getVerifyTXMethod() { io.grpc.MethodDescriptor getVerifyTXMethod; if ((getVerifyTXMethod = AergoRPCServiceGrpc.getVerifyTXMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getVerifyTXMethod = AergoRPCServiceGrpc.getVerifyTXMethod) == null) { AergoRPCServiceGrpc.getVerifyTXMethod = getVerifyTXMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyTX")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.Tx.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.VerifyResult.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("VerifyTX")) .build(); } } } return getVerifyTXMethod; } private static volatile io.grpc.MethodDescriptor getCommitTXMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CommitTX", requestType = types.Blockchain.TxList.class, responseType = types.Rpc.CommitResultList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCommitTXMethod() { io.grpc.MethodDescriptor getCommitTXMethod; if ((getCommitTXMethod = AergoRPCServiceGrpc.getCommitTXMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getCommitTXMethod = AergoRPCServiceGrpc.getCommitTXMethod) == null) { AergoRPCServiceGrpc.getCommitTXMethod = getCommitTXMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CommitTX")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.TxList.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.CommitResultList.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("CommitTX")) .build(); } } } return getCommitTXMethod; } private static volatile io.grpc.MethodDescriptor getGetStateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetState", requestType = types.Rpc.SingleBytes.class, responseType = types.Blockchain.State.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetStateMethod() { io.grpc.MethodDescriptor getGetStateMethod; if ((getGetStateMethod = AergoRPCServiceGrpc.getGetStateMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetStateMethod = AergoRPCServiceGrpc.getGetStateMethod) == null) { AergoRPCServiceGrpc.getGetStateMethod = getGetStateMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetState")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.SingleBytes.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.State.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetState")) .build(); } } } return getGetStateMethod; } private static volatile io.grpc.MethodDescriptor getGetStateAndProofMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetStateAndProof", requestType = types.Rpc.AccountAndRoot.class, responseType = types.Blockchain.AccountProof.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetStateAndProofMethod() { io.grpc.MethodDescriptor getGetStateAndProofMethod; if ((getGetStateAndProofMethod = AergoRPCServiceGrpc.getGetStateAndProofMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetStateAndProofMethod = AergoRPCServiceGrpc.getGetStateAndProofMethod) == null) { AergoRPCServiceGrpc.getGetStateAndProofMethod = getGetStateAndProofMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStateAndProof")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.AccountAndRoot.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.AccountProof.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetStateAndProof")) .build(); } } } return getGetStateAndProofMethod; } private static volatile io.grpc.MethodDescriptor getCreateAccountMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateAccount", requestType = types.Rpc.Personal.class, responseType = types.AccountOuterClass.Account.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCreateAccountMethod() { io.grpc.MethodDescriptor getCreateAccountMethod; if ((getCreateAccountMethod = AergoRPCServiceGrpc.getCreateAccountMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getCreateAccountMethod = AergoRPCServiceGrpc.getCreateAccountMethod) == null) { AergoRPCServiceGrpc.getCreateAccountMethod = getCreateAccountMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAccount")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.Personal.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.AccountOuterClass.Account.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("CreateAccount")) .build(); } } } return getCreateAccountMethod; } private static volatile io.grpc.MethodDescriptor getGetAccountsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetAccounts", requestType = types.Rpc.Empty.class, responseType = types.AccountOuterClass.AccountList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetAccountsMethod() { io.grpc.MethodDescriptor getGetAccountsMethod; if ((getGetAccountsMethod = AergoRPCServiceGrpc.getGetAccountsMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetAccountsMethod = AergoRPCServiceGrpc.getGetAccountsMethod) == null) { AergoRPCServiceGrpc.getGetAccountsMethod = getGetAccountsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccounts")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.Empty.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.AccountOuterClass.AccountList.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetAccounts")) .build(); } } } return getGetAccountsMethod; } private static volatile io.grpc.MethodDescriptor getLockAccountMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "LockAccount", requestType = types.Rpc.Personal.class, responseType = types.AccountOuterClass.Account.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getLockAccountMethod() { io.grpc.MethodDescriptor getLockAccountMethod; if ((getLockAccountMethod = AergoRPCServiceGrpc.getLockAccountMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getLockAccountMethod = AergoRPCServiceGrpc.getLockAccountMethod) == null) { AergoRPCServiceGrpc.getLockAccountMethod = getLockAccountMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LockAccount")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.Personal.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.AccountOuterClass.Account.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("LockAccount")) .build(); } } } return getLockAccountMethod; } private static volatile io.grpc.MethodDescriptor getUnlockAccountMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UnlockAccount", requestType = types.Rpc.Personal.class, responseType = types.AccountOuterClass.Account.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getUnlockAccountMethod() { io.grpc.MethodDescriptor getUnlockAccountMethod; if ((getUnlockAccountMethod = AergoRPCServiceGrpc.getUnlockAccountMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getUnlockAccountMethod = AergoRPCServiceGrpc.getUnlockAccountMethod) == null) { AergoRPCServiceGrpc.getUnlockAccountMethod = getUnlockAccountMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UnlockAccount")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.Personal.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.AccountOuterClass.Account.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("UnlockAccount")) .build(); } } } return getUnlockAccountMethod; } private static volatile io.grpc.MethodDescriptor getImportAccountMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ImportAccount", requestType = types.Rpc.ImportFormat.class, responseType = types.AccountOuterClass.Account.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getImportAccountMethod() { io.grpc.MethodDescriptor getImportAccountMethod; if ((getImportAccountMethod = AergoRPCServiceGrpc.getImportAccountMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getImportAccountMethod = AergoRPCServiceGrpc.getImportAccountMethod) == null) { AergoRPCServiceGrpc.getImportAccountMethod = getImportAccountMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportAccount")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.ImportFormat.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.AccountOuterClass.Account.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ImportAccount")) .build(); } } } return getImportAccountMethod; } private static volatile io.grpc.MethodDescriptor getExportAccountMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ExportAccount", requestType = types.Rpc.Personal.class, responseType = types.Rpc.SingleBytes.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getExportAccountMethod() { io.grpc.MethodDescriptor getExportAccountMethod; if ((getExportAccountMethod = AergoRPCServiceGrpc.getExportAccountMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getExportAccountMethod = AergoRPCServiceGrpc.getExportAccountMethod) == null) { AergoRPCServiceGrpc.getExportAccountMethod = getExportAccountMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportAccount")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.Personal.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.SingleBytes.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ExportAccount")) .build(); } } } return getExportAccountMethod; } private static volatile io.grpc.MethodDescriptor getExportAccountKeystoreMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ExportAccountKeystore", requestType = types.Rpc.Personal.class, responseType = types.Rpc.SingleBytes.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getExportAccountKeystoreMethod() { io.grpc.MethodDescriptor getExportAccountKeystoreMethod; if ((getExportAccountKeystoreMethod = AergoRPCServiceGrpc.getExportAccountKeystoreMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getExportAccountKeystoreMethod = AergoRPCServiceGrpc.getExportAccountKeystoreMethod) == null) { AergoRPCServiceGrpc.getExportAccountKeystoreMethod = getExportAccountKeystoreMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportAccountKeystore")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.Personal.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.SingleBytes.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ExportAccountKeystore")) .build(); } } } return getExportAccountKeystoreMethod; } private static volatile io.grpc.MethodDescriptor getQueryContractMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "QueryContract", requestType = types.Blockchain.Query.class, responseType = types.Rpc.SingleBytes.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getQueryContractMethod() { io.grpc.MethodDescriptor getQueryContractMethod; if ((getQueryContractMethod = AergoRPCServiceGrpc.getQueryContractMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getQueryContractMethod = AergoRPCServiceGrpc.getQueryContractMethod) == null) { AergoRPCServiceGrpc.getQueryContractMethod = getQueryContractMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryContract")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.Query.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.SingleBytes.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("QueryContract")) .build(); } } } return getQueryContractMethod; } private static volatile io.grpc.MethodDescriptor getQueryContractStateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "QueryContractState", requestType = types.Blockchain.StateQuery.class, responseType = types.Blockchain.StateQueryProof.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getQueryContractStateMethod() { io.grpc.MethodDescriptor getQueryContractStateMethod; if ((getQueryContractStateMethod = AergoRPCServiceGrpc.getQueryContractStateMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getQueryContractStateMethod = AergoRPCServiceGrpc.getQueryContractStateMethod) == null) { AergoRPCServiceGrpc.getQueryContractStateMethod = getQueryContractStateMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryContractState")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.StateQuery.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.StateQueryProof.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("QueryContractState")) .build(); } } } return getQueryContractStateMethod; } private static volatile io.grpc.MethodDescriptor getGetPeersMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetPeers", requestType = types.Rpc.PeersParams.class, responseType = types.Rpc.PeerList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetPeersMethod() { io.grpc.MethodDescriptor getGetPeersMethod; if ((getGetPeersMethod = AergoRPCServiceGrpc.getGetPeersMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetPeersMethod = AergoRPCServiceGrpc.getGetPeersMethod) == null) { AergoRPCServiceGrpc.getGetPeersMethod = getGetPeersMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPeers")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.PeersParams.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.PeerList.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetPeers")) .build(); } } } return getGetPeersMethod; } private static volatile io.grpc.MethodDescriptor getGetVotesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetVotes", requestType = types.Rpc.VoteParams.class, responseType = types.Rpc.VoteList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetVotesMethod() { io.grpc.MethodDescriptor getGetVotesMethod; if ((getGetVotesMethod = AergoRPCServiceGrpc.getGetVotesMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetVotesMethod = AergoRPCServiceGrpc.getGetVotesMethod) == null) { AergoRPCServiceGrpc.getGetVotesMethod = getGetVotesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVotes")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.VoteParams.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.VoteList.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetVotes")) .build(); } } } return getGetVotesMethod; } private static volatile io.grpc.MethodDescriptor getGetAccountVotesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetAccountVotes", requestType = types.Rpc.AccountAddress.class, responseType = types.Rpc.AccountVoteInfo.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetAccountVotesMethod() { io.grpc.MethodDescriptor getGetAccountVotesMethod; if ((getGetAccountVotesMethod = AergoRPCServiceGrpc.getGetAccountVotesMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetAccountVotesMethod = AergoRPCServiceGrpc.getGetAccountVotesMethod) == null) { AergoRPCServiceGrpc.getGetAccountVotesMethod = getGetAccountVotesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccountVotes")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.AccountAddress.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.AccountVoteInfo.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetAccountVotes")) .build(); } } } return getGetAccountVotesMethod; } private static volatile io.grpc.MethodDescriptor getGetStakingMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetStaking", requestType = types.Rpc.AccountAddress.class, responseType = types.Rpc.Staking.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetStakingMethod() { io.grpc.MethodDescriptor getGetStakingMethod; if ((getGetStakingMethod = AergoRPCServiceGrpc.getGetStakingMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetStakingMethod = AergoRPCServiceGrpc.getGetStakingMethod) == null) { AergoRPCServiceGrpc.getGetStakingMethod = getGetStakingMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStaking")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.AccountAddress.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.Staking.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetStaking")) .build(); } } } return getGetStakingMethod; } private static volatile io.grpc.MethodDescriptor getGetNameInfoMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetNameInfo", requestType = types.Rpc.Name.class, responseType = types.Rpc.NameInfo.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetNameInfoMethod() { io.grpc.MethodDescriptor getGetNameInfoMethod; if ((getGetNameInfoMethod = AergoRPCServiceGrpc.getGetNameInfoMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetNameInfoMethod = AergoRPCServiceGrpc.getGetNameInfoMethod) == null) { AergoRPCServiceGrpc.getGetNameInfoMethod = getGetNameInfoMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNameInfo")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.Name.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.NameInfo.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetNameInfo")) .build(); } } } return getGetNameInfoMethod; } private static volatile io.grpc.MethodDescriptor getListEventStreamMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListEventStream", requestType = types.Blockchain.FilterInfo.class, responseType = types.Blockchain.Event.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) public static io.grpc.MethodDescriptor getListEventStreamMethod() { io.grpc.MethodDescriptor getListEventStreamMethod; if ((getListEventStreamMethod = AergoRPCServiceGrpc.getListEventStreamMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getListEventStreamMethod = AergoRPCServiceGrpc.getListEventStreamMethod) == null) { AergoRPCServiceGrpc.getListEventStreamMethod = getListEventStreamMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEventStream")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.FilterInfo.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.Event.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ListEventStream")) .build(); } } } return getListEventStreamMethod; } private static volatile io.grpc.MethodDescriptor getListEventsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListEvents", requestType = types.Blockchain.FilterInfo.class, responseType = types.Rpc.EventList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListEventsMethod() { io.grpc.MethodDescriptor getListEventsMethod; if ((getListEventsMethod = AergoRPCServiceGrpc.getListEventsMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getListEventsMethod = AergoRPCServiceGrpc.getListEventsMethod) == null) { AergoRPCServiceGrpc.getListEventsMethod = getListEventsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEvents")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Blockchain.FilterInfo.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.EventList.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ListEvents")) .build(); } } } return getListEventsMethod; } private static volatile io.grpc.MethodDescriptor getGetServerInfoMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetServerInfo", requestType = types.Rpc.KeyParams.class, responseType = types.Rpc.ServerInfo.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetServerInfoMethod() { io.grpc.MethodDescriptor getGetServerInfoMethod; if ((getGetServerInfoMethod = AergoRPCServiceGrpc.getGetServerInfoMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetServerInfoMethod = AergoRPCServiceGrpc.getGetServerInfoMethod) == null) { AergoRPCServiceGrpc.getGetServerInfoMethod = getGetServerInfoMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServerInfo")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.KeyParams.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.ServerInfo.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetServerInfo")) .build(); } } } return getGetServerInfoMethod; } private static volatile io.grpc.MethodDescriptor getGetConsensusInfoMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetConsensusInfo", requestType = types.Rpc.Empty.class, responseType = types.Rpc.ConsensusInfo.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetConsensusInfoMethod() { io.grpc.MethodDescriptor getGetConsensusInfoMethod; if ((getGetConsensusInfoMethod = AergoRPCServiceGrpc.getGetConsensusInfoMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetConsensusInfoMethod = AergoRPCServiceGrpc.getGetConsensusInfoMethod) == null) { AergoRPCServiceGrpc.getGetConsensusInfoMethod = getGetConsensusInfoMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConsensusInfo")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.Empty.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.ConsensusInfo.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetConsensusInfo")) .build(); } } } return getGetConsensusInfoMethod; } private static volatile io.grpc.MethodDescriptor getChangeMembershipMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ChangeMembership", requestType = types.Raft.MembershipChange.class, responseType = types.Raft.MembershipChangeReply.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getChangeMembershipMethod() { io.grpc.MethodDescriptor getChangeMembershipMethod; if ((getChangeMembershipMethod = AergoRPCServiceGrpc.getChangeMembershipMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getChangeMembershipMethod = AergoRPCServiceGrpc.getChangeMembershipMethod) == null) { AergoRPCServiceGrpc.getChangeMembershipMethod = getChangeMembershipMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ChangeMembership")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Raft.MembershipChange.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Raft.MembershipChangeReply.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ChangeMembership")) .build(); } } } return getChangeMembershipMethod; } private static volatile io.grpc.MethodDescriptor getGetEnterpriseConfigMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetEnterpriseConfig", requestType = types.Rpc.EnterpriseConfigKey.class, responseType = types.Rpc.EnterpriseConfig.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetEnterpriseConfigMethod() { io.grpc.MethodDescriptor getGetEnterpriseConfigMethod; if ((getGetEnterpriseConfigMethod = AergoRPCServiceGrpc.getGetEnterpriseConfigMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetEnterpriseConfigMethod = AergoRPCServiceGrpc.getGetEnterpriseConfigMethod) == null) { AergoRPCServiceGrpc.getGetEnterpriseConfigMethod = getGetEnterpriseConfigMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnterpriseConfig")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.EnterpriseConfigKey.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.EnterpriseConfig.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetEnterpriseConfig")) .build(); } } } return getGetEnterpriseConfigMethod; } private static volatile io.grpc.MethodDescriptor getGetConfChangeProgressMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetConfChangeProgress", requestType = types.Rpc.SingleBytes.class, responseType = types.Raft.ConfChangeProgress.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetConfChangeProgressMethod() { io.grpc.MethodDescriptor getGetConfChangeProgressMethod; if ((getGetConfChangeProgressMethod = AergoRPCServiceGrpc.getGetConfChangeProgressMethod) == null) { synchronized (AergoRPCServiceGrpc.class) { if ((getGetConfChangeProgressMethod = AergoRPCServiceGrpc.getGetConfChangeProgressMethod) == null) { AergoRPCServiceGrpc.getGetConfChangeProgressMethod = getGetConfChangeProgressMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfChangeProgress")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Rpc.SingleBytes.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( types.Raft.ConfChangeProgress.getDefaultInstance())) .setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetConfChangeProgress")) .build(); } } } return getGetConfChangeProgressMethod; } /** * Creates a new async stub that supports all call types for the service */ public static AergoRPCServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public AergoRPCServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AergoRPCServiceStub(channel, callOptions); } }; return AergoRPCServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static AergoRPCServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public AergoRPCServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AergoRPCServiceBlockingStub(channel, callOptions); } }; return AergoRPCServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static AergoRPCServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public AergoRPCServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AergoRPCServiceFutureStub(channel, callOptions); } }; return AergoRPCServiceFutureStub.newStub(factory, channel); } /** *
   **
   * AergoRPCService is the main RPC service providing endpoints to interact 
   * with the node and blockchain. If not otherwise noted, methods are unary requests.
   * 
*/ public static abstract class AergoRPCServiceImplBase implements io.grpc.BindableService { /** *
     * Returns the current state of this node
     * 
*/ public void nodeState(types.Rpc.NodeReq request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getNodeStateMethod(), responseObserver); } /** *
     * Returns node metrics according to request 
     * 
*/ public void metric(types.Metric.MetricsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMetricMethod(), responseObserver); } /** *
     * Returns current blockchain status (best block's height and hash)
     * 
*/ public void blockchain(types.Rpc.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBlockchainMethod(), responseObserver); } /** *
     * Returns current blockchain's basic information
     * 
*/ public void getChainInfo(types.Rpc.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetChainInfoMethod(), responseObserver); } /** *
     * Returns current chain statistics
     * 
*/ public void chainStat(types.Rpc.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getChainStatMethod(), responseObserver); } /** *
     * Returns list of Blocks without body according to request
     * 
*/ public void listBlockHeaders(types.Rpc.ListParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBlockHeadersMethod(), responseObserver); } /** *
     * Returns list of block metadata (hash, header, and number of transactions) according to request
     * 
*/ public void listBlockMetadata(types.Rpc.ListParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBlockMetadataMethod(), responseObserver); } /** *
     * Returns a stream of new blocks as they get added to the blockchain
     * 
*/ public void listBlockStream(types.Rpc.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBlockStreamMethod(), responseObserver); } /** *
     * Returns a stream of new block's metadata as they get added to the blockchain
     * 
*/ public void listBlockMetadataStream(types.Rpc.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBlockMetadataStreamMethod(), responseObserver); } /** *
     * Return a single block incl. header and body, queried by hash or number
     * 
*/ public void getBlock(types.Rpc.SingleBytes request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockMethod(), responseObserver); } /** *
     * Return a single block's metdata (hash, header, and number of transactions), queried by hash or number
     * 
*/ public void getBlockMetadata(types.Rpc.SingleBytes request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockMetadataMethod(), responseObserver); } /** *
     * Return a single block's body, queried by hash or number and list parameters
     * 
*/ public void getBlockBody(types.Rpc.BlockBodyParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockBodyMethod(), responseObserver); } /** *
     * Return a single transaction, queried by transaction hash
     * 
*/ public void getTX(types.Rpc.SingleBytes request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTXMethod(), responseObserver); } /** *
     * Return information about transaction in block, queried by transaction hash
     * 
*/ public void getBlockTX(types.Rpc.SingleBytes request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockTXMethod(), responseObserver); } /** *
     * Return transaction receipt, queried by transaction hash
     * 
*/ public void getReceipt(types.Rpc.SingleBytes request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetReceiptMethod(), responseObserver); } /** *
     * Return ABI stored at contract address
     * 
*/ public void getABI(types.Rpc.SingleBytes request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetABIMethod(), responseObserver); } /** *
     * Sign and send a transaction from an unlocked account
     * 
*/ public void sendTX(types.Blockchain.Tx request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendTXMethod(), responseObserver); } /** *
     * Sign transaction with unlocked account
     * 
*/ public void signTX(types.Blockchain.Tx request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSignTXMethod(), responseObserver); } /** *
     * Verify validity of transaction
     * 
*/ public void verifyTX(types.Blockchain.Tx request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyTXMethod(), responseObserver); } /** *
     * Commit a signed transaction
     * 
*/ public void commitTX(types.Blockchain.TxList request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCommitTXMethod(), responseObserver); } /** *
     * Return state of account
     * 
*/ public void getState(types.Rpc.SingleBytes request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStateMethod(), responseObserver); } /** *
     * Return state of account, including merkle proof
     * 
*/ public void getStateAndProof(types.Rpc.AccountAndRoot request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStateAndProofMethod(), responseObserver); } /** *
     * Create a new account in this node
     * 
*/ public void createAccount(types.Rpc.Personal request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAccountMethod(), responseObserver); } /** *
     * Return list of accounts in this node
     * 
*/ public void getAccounts(types.Rpc.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountsMethod(), responseObserver); } /** *
     * Lock account in this node
     * 
*/ public void lockAccount(types.Rpc.Personal request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLockAccountMethod(), responseObserver); } /** *
     * Unlock account in this node
     * 
*/ public void unlockAccount(types.Rpc.Personal request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUnlockAccountMethod(), responseObserver); } /** *
     * Import account to this node
     * 
*/ public void importAccount(types.Rpc.ImportFormat request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportAccountMethod(), responseObserver); } /** *
     * Export account stored in this node as wif format
     * 
*/ public void exportAccount(types.Rpc.Personal request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportAccountMethod(), responseObserver); } /** *
     * Export account stored in this node as keystore format
     * 
*/ public void exportAccountKeystore(types.Rpc.Personal request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportAccountKeystoreMethod(), responseObserver); } /** *
     * Query a contract method
     * 
*/ public void queryContract(types.Blockchain.Query request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryContractMethod(), responseObserver); } /** *
     * Query contract state
     * 
*/ public void queryContractState(types.Blockchain.StateQuery request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryContractStateMethod(), responseObserver); } /** *
     * Return list of peers of this node and their state
     * 
*/ public void getPeers(types.Rpc.PeersParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPeersMethod(), responseObserver); } /** *
     * Return result of vote
     * 
*/ public void getVotes(types.Rpc.VoteParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVotesMethod(), responseObserver); } /** *
     * Return staking, voting info for account
     * 
*/ public void getAccountVotes(types.Rpc.AccountAddress request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountVotesMethod(), responseObserver); } /** *
     * Return staking information
     * 
*/ public void getStaking(types.Rpc.AccountAddress request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStakingMethod(), responseObserver); } /** *
     * Return name information
     * 
*/ public void getNameInfo(types.Rpc.Name request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNameInfoMethod(), responseObserver); } /** *
     * Returns a stream of event as they get added to the blockchain
     * 
*/ public void listEventStream(types.Blockchain.FilterInfo request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEventStreamMethod(), responseObserver); } /** *
     * Returns list of event
     * 
*/ public void listEvents(types.Blockchain.FilterInfo request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEventsMethod(), responseObserver); } /** *
     * Returns configs and statuses of server
     * 
*/ public void getServerInfo(types.Rpc.KeyParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServerInfoMethod(), responseObserver); } /** *
     * Returns status of consensus and bps
     * 
*/ public void getConsensusInfo(types.Rpc.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConsensusInfoMethod(), responseObserver); } /** *
     * Add & remove member of raft cluster
     * 
*/ public void changeMembership(types.Raft.MembershipChange request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getChangeMembershipMethod(), responseObserver); } /** *
     * Returns enterprise config
     * 
*/ public void getEnterpriseConfig(types.Rpc.EnterpriseConfigKey request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEnterpriseConfigMethod(), responseObserver); } /** *
     * Return a status of changeCluster enterprise tx,  queried by requestID
     * 
*/ public void getConfChangeProgress(types.Rpc.SingleBytes request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfChangeProgressMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getNodeStateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.NodeReq, types.Rpc.SingleBytes>( this, METHODID_NODE_STATE))) .addMethod( getMetricMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Metric.MetricsRequest, types.Metric.Metrics>( this, METHODID_METRIC))) .addMethod( getBlockchainMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.Empty, types.Rpc.BlockchainStatus>( this, METHODID_BLOCKCHAIN))) .addMethod( getGetChainInfoMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.Empty, types.Rpc.ChainInfo>( this, METHODID_GET_CHAIN_INFO))) .addMethod( getChainStatMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.Empty, types.Rpc.ChainStats>( this, METHODID_CHAIN_STAT))) .addMethod( getListBlockHeadersMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.ListParams, types.Rpc.BlockHeaderList>( this, METHODID_LIST_BLOCK_HEADERS))) .addMethod( getListBlockMetadataMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.ListParams, types.Rpc.BlockMetadataList>( this, METHODID_LIST_BLOCK_METADATA))) .addMethod( getListBlockStreamMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall( new MethodHandlers< types.Rpc.Empty, types.Blockchain.Block>( this, METHODID_LIST_BLOCK_STREAM))) .addMethod( getListBlockMetadataStreamMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall( new MethodHandlers< types.Rpc.Empty, types.Rpc.BlockMetadata>( this, METHODID_LIST_BLOCK_METADATA_STREAM))) .addMethod( getGetBlockMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.SingleBytes, types.Blockchain.Block>( this, METHODID_GET_BLOCK))) .addMethod( getGetBlockMetadataMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.SingleBytes, types.Rpc.BlockMetadata>( this, METHODID_GET_BLOCK_METADATA))) .addMethod( getGetBlockBodyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.BlockBodyParams, types.Rpc.BlockBodyPaged>( this, METHODID_GET_BLOCK_BODY))) .addMethod( getGetTXMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.SingleBytes, types.Blockchain.Tx>( this, METHODID_GET_TX))) .addMethod( getGetBlockTXMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.SingleBytes, types.Blockchain.TxInBlock>( this, METHODID_GET_BLOCK_TX))) .addMethod( getGetReceiptMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.SingleBytes, types.Blockchain.Receipt>( this, METHODID_GET_RECEIPT))) .addMethod( getGetABIMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.SingleBytes, types.Blockchain.ABI>( this, METHODID_GET_ABI))) .addMethod( getSendTXMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Blockchain.Tx, types.Rpc.CommitResult>( this, METHODID_SEND_TX))) .addMethod( getSignTXMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Blockchain.Tx, types.Blockchain.Tx>( this, METHODID_SIGN_TX))) .addMethod( getVerifyTXMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Blockchain.Tx, types.Rpc.VerifyResult>( this, METHODID_VERIFY_TX))) .addMethod( getCommitTXMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Blockchain.TxList, types.Rpc.CommitResultList>( this, METHODID_COMMIT_TX))) .addMethod( getGetStateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.SingleBytes, types.Blockchain.State>( this, METHODID_GET_STATE))) .addMethod( getGetStateAndProofMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.AccountAndRoot, types.Blockchain.AccountProof>( this, METHODID_GET_STATE_AND_PROOF))) .addMethod( getCreateAccountMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.Personal, types.AccountOuterClass.Account>( this, METHODID_CREATE_ACCOUNT))) .addMethod( getGetAccountsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.Empty, types.AccountOuterClass.AccountList>( this, METHODID_GET_ACCOUNTS))) .addMethod( getLockAccountMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.Personal, types.AccountOuterClass.Account>( this, METHODID_LOCK_ACCOUNT))) .addMethod( getUnlockAccountMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.Personal, types.AccountOuterClass.Account>( this, METHODID_UNLOCK_ACCOUNT))) .addMethod( getImportAccountMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.ImportFormat, types.AccountOuterClass.Account>( this, METHODID_IMPORT_ACCOUNT))) .addMethod( getExportAccountMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.Personal, types.Rpc.SingleBytes>( this, METHODID_EXPORT_ACCOUNT))) .addMethod( getExportAccountKeystoreMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.Personal, types.Rpc.SingleBytes>( this, METHODID_EXPORT_ACCOUNT_KEYSTORE))) .addMethod( getQueryContractMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Blockchain.Query, types.Rpc.SingleBytes>( this, METHODID_QUERY_CONTRACT))) .addMethod( getQueryContractStateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Blockchain.StateQuery, types.Blockchain.StateQueryProof>( this, METHODID_QUERY_CONTRACT_STATE))) .addMethod( getGetPeersMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.PeersParams, types.Rpc.PeerList>( this, METHODID_GET_PEERS))) .addMethod( getGetVotesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.VoteParams, types.Rpc.VoteList>( this, METHODID_GET_VOTES))) .addMethod( getGetAccountVotesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.AccountAddress, types.Rpc.AccountVoteInfo>( this, METHODID_GET_ACCOUNT_VOTES))) .addMethod( getGetStakingMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.AccountAddress, types.Rpc.Staking>( this, METHODID_GET_STAKING))) .addMethod( getGetNameInfoMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.Name, types.Rpc.NameInfo>( this, METHODID_GET_NAME_INFO))) .addMethod( getListEventStreamMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall( new MethodHandlers< types.Blockchain.FilterInfo, types.Blockchain.Event>( this, METHODID_LIST_EVENT_STREAM))) .addMethod( getListEventsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Blockchain.FilterInfo, types.Rpc.EventList>( this, METHODID_LIST_EVENTS))) .addMethod( getGetServerInfoMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.KeyParams, types.Rpc.ServerInfo>( this, METHODID_GET_SERVER_INFO))) .addMethod( getGetConsensusInfoMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.Empty, types.Rpc.ConsensusInfo>( this, METHODID_GET_CONSENSUS_INFO))) .addMethod( getChangeMembershipMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Raft.MembershipChange, types.Raft.MembershipChangeReply>( this, METHODID_CHANGE_MEMBERSHIP))) .addMethod( getGetEnterpriseConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.EnterpriseConfigKey, types.Rpc.EnterpriseConfig>( this, METHODID_GET_ENTERPRISE_CONFIG))) .addMethod( getGetConfChangeProgressMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.SingleBytes, types.Raft.ConfChangeProgress>( this, METHODID_GET_CONF_CHANGE_PROGRESS))) .build(); } } /** *
   **
   * AergoRPCService is the main RPC service providing endpoints to interact 
   * with the node and blockchain. If not otherwise noted, methods are unary requests.
   * 
*/ public static final class AergoRPCServiceStub extends io.grpc.stub.AbstractAsyncStub { private AergoRPCServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AergoRPCServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AergoRPCServiceStub(channel, callOptions); } /** *
     * Returns the current state of this node
     * 
*/ public void nodeState(types.Rpc.NodeReq request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getNodeStateMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns node metrics according to request 
     * 
*/ public void metric(types.Metric.MetricsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getMetricMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns current blockchain status (best block's height and hash)
     * 
*/ public void blockchain(types.Rpc.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBlockchainMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns current blockchain's basic information
     * 
*/ public void getChainInfo(types.Rpc.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetChainInfoMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns current chain statistics
     * 
*/ public void chainStat(types.Rpc.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getChainStatMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns list of Blocks without body according to request
     * 
*/ public void listBlockHeaders(types.Rpc.ListParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListBlockHeadersMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns list of block metadata (hash, header, and number of transactions) according to request
     * 
*/ public void listBlockMetadata(types.Rpc.ListParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListBlockMetadataMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns a stream of new blocks as they get added to the blockchain
     * 
*/ public void listBlockStream(types.Rpc.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getListBlockStreamMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns a stream of new block's metadata as they get added to the blockchain
     * 
*/ public void listBlockMetadataStream(types.Rpc.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getListBlockMetadataStreamMethod(), getCallOptions()), request, responseObserver); } /** *
     * Return a single block incl. header and body, queried by hash or number
     * 
*/ public void getBlock(types.Rpc.SingleBytes request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBlockMethod(), getCallOptions()), request, responseObserver); } /** *
     * Return a single block's metdata (hash, header, and number of transactions), queried by hash or number
     * 
*/ public void getBlockMetadata(types.Rpc.SingleBytes request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBlockMetadataMethod(), getCallOptions()), request, responseObserver); } /** *
     * Return a single block's body, queried by hash or number and list parameters
     * 
*/ public void getBlockBody(types.Rpc.BlockBodyParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBlockBodyMethod(), getCallOptions()), request, responseObserver); } /** *
     * Return a single transaction, queried by transaction hash
     * 
*/ public void getTX(types.Rpc.SingleBytes request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetTXMethod(), getCallOptions()), request, responseObserver); } /** *
     * Return information about transaction in block, queried by transaction hash
     * 
*/ public void getBlockTX(types.Rpc.SingleBytes request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBlockTXMethod(), getCallOptions()), request, responseObserver); } /** *
     * Return transaction receipt, queried by transaction hash
     * 
*/ public void getReceipt(types.Rpc.SingleBytes request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetReceiptMethod(), getCallOptions()), request, responseObserver); } /** *
     * Return ABI stored at contract address
     * 
*/ public void getABI(types.Rpc.SingleBytes request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetABIMethod(), getCallOptions()), request, responseObserver); } /** *
     * Sign and send a transaction from an unlocked account
     * 
*/ public void sendTX(types.Blockchain.Tx request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSendTXMethod(), getCallOptions()), request, responseObserver); } /** *
     * Sign transaction with unlocked account
     * 
*/ public void signTX(types.Blockchain.Tx request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSignTXMethod(), getCallOptions()), request, responseObserver); } /** *
     * Verify validity of transaction
     * 
*/ public void verifyTX(types.Blockchain.Tx request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getVerifyTXMethod(), getCallOptions()), request, responseObserver); } /** *
     * Commit a signed transaction
     * 
*/ public void commitTX(types.Blockchain.TxList request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCommitTXMethod(), getCallOptions()), request, responseObserver); } /** *
     * Return state of account
     * 
*/ public void getState(types.Rpc.SingleBytes request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetStateMethod(), getCallOptions()), request, responseObserver); } /** *
     * Return state of account, including merkle proof
     * 
*/ public void getStateAndProof(types.Rpc.AccountAndRoot request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetStateAndProofMethod(), getCallOptions()), request, responseObserver); } /** *
     * Create a new account in this node
     * 
*/ public void createAccount(types.Rpc.Personal request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateAccountMethod(), getCallOptions()), request, responseObserver); } /** *
     * Return list of accounts in this node
     * 
*/ public void getAccounts(types.Rpc.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAccountsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Lock account in this node
     * 
*/ public void lockAccount(types.Rpc.Personal request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getLockAccountMethod(), getCallOptions()), request, responseObserver); } /** *
     * Unlock account in this node
     * 
*/ public void unlockAccount(types.Rpc.Personal request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUnlockAccountMethod(), getCallOptions()), request, responseObserver); } /** *
     * Import account to this node
     * 
*/ public void importAccount(types.Rpc.ImportFormat request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getImportAccountMethod(), getCallOptions()), request, responseObserver); } /** *
     * Export account stored in this node as wif format
     * 
*/ public void exportAccount(types.Rpc.Personal request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportAccountMethod(), getCallOptions()), request, responseObserver); } /** *
     * Export account stored in this node as keystore format
     * 
*/ public void exportAccountKeystore(types.Rpc.Personal request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportAccountKeystoreMethod(), getCallOptions()), request, responseObserver); } /** *
     * Query a contract method
     * 
*/ public void queryContract(types.Blockchain.Query request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getQueryContractMethod(), getCallOptions()), request, responseObserver); } /** *
     * Query contract state
     * 
*/ public void queryContractState(types.Blockchain.StateQuery request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getQueryContractStateMethod(), getCallOptions()), request, responseObserver); } /** *
     * Return list of peers of this node and their state
     * 
*/ public void getPeers(types.Rpc.PeersParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetPeersMethod(), getCallOptions()), request, responseObserver); } /** *
     * Return result of vote
     * 
*/ public void getVotes(types.Rpc.VoteParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetVotesMethod(), getCallOptions()), request, responseObserver); } /** *
     * Return staking, voting info for account
     * 
*/ public void getAccountVotes(types.Rpc.AccountAddress request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAccountVotesMethod(), getCallOptions()), request, responseObserver); } /** *
     * Return staking information
     * 
*/ public void getStaking(types.Rpc.AccountAddress request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetStakingMethod(), getCallOptions()), request, responseObserver); } /** *
     * Return name information
     * 
*/ public void getNameInfo(types.Rpc.Name request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetNameInfoMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns a stream of event as they get added to the blockchain
     * 
*/ public void listEventStream(types.Blockchain.FilterInfo request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getListEventStreamMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns list of event
     * 
*/ public void listEvents(types.Blockchain.FilterInfo request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListEventsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns configs and statuses of server
     * 
*/ public void getServerInfo(types.Rpc.KeyParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetServerInfoMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns status of consensus and bps
     * 
*/ public void getConsensusInfo(types.Rpc.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetConsensusInfoMethod(), getCallOptions()), request, responseObserver); } /** *
     * Add & remove member of raft cluster
     * 
*/ public void changeMembership(types.Raft.MembershipChange request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getChangeMembershipMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns enterprise config
     * 
*/ public void getEnterpriseConfig(types.Rpc.EnterpriseConfigKey request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetEnterpriseConfigMethod(), getCallOptions()), request, responseObserver); } /** *
     * Return a status of changeCluster enterprise tx,  queried by requestID
     * 
*/ public void getConfChangeProgress(types.Rpc.SingleBytes request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetConfChangeProgressMethod(), getCallOptions()), request, responseObserver); } } /** *
   **
   * AergoRPCService is the main RPC service providing endpoints to interact 
   * with the node and blockchain. If not otherwise noted, methods are unary requests.
   * 
*/ public static final class AergoRPCServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private AergoRPCServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AergoRPCServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AergoRPCServiceBlockingStub(channel, callOptions); } /** *
     * Returns the current state of this node
     * 
*/ public types.Rpc.SingleBytes nodeState(types.Rpc.NodeReq request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getNodeStateMethod(), getCallOptions(), request); } /** *
     * Returns node metrics according to request 
     * 
*/ public types.Metric.Metrics metric(types.Metric.MetricsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getMetricMethod(), getCallOptions(), request); } /** *
     * Returns current blockchain status (best block's height and hash)
     * 
*/ public types.Rpc.BlockchainStatus blockchain(types.Rpc.Empty request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBlockchainMethod(), getCallOptions(), request); } /** *
     * Returns current blockchain's basic information
     * 
*/ public types.Rpc.ChainInfo getChainInfo(types.Rpc.Empty request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetChainInfoMethod(), getCallOptions(), request); } /** *
     * Returns current chain statistics
     * 
*/ public types.Rpc.ChainStats chainStat(types.Rpc.Empty request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getChainStatMethod(), getCallOptions(), request); } /** *
     * Returns list of Blocks without body according to request
     * 
*/ public types.Rpc.BlockHeaderList listBlockHeaders(types.Rpc.ListParams request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBlockHeadersMethod(), getCallOptions(), request); } /** *
     * Returns list of block metadata (hash, header, and number of transactions) according to request
     * 
*/ public types.Rpc.BlockMetadataList listBlockMetadata(types.Rpc.ListParams request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBlockMetadataMethod(), getCallOptions(), request); } /** *
     * Returns a stream of new blocks as they get added to the blockchain
     * 
*/ public java.util.Iterator listBlockStream( types.Rpc.Empty request) { return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getListBlockStreamMethod(), getCallOptions(), request); } /** *
     * Returns a stream of new block's metadata as they get added to the blockchain
     * 
*/ public java.util.Iterator listBlockMetadataStream( types.Rpc.Empty request) { return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getListBlockMetadataStreamMethod(), getCallOptions(), request); } /** *
     * Return a single block incl. header and body, queried by hash or number
     * 
*/ public types.Blockchain.Block getBlock(types.Rpc.SingleBytes request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBlockMethod(), getCallOptions(), request); } /** *
     * Return a single block's metdata (hash, header, and number of transactions), queried by hash or number
     * 
*/ public types.Rpc.BlockMetadata getBlockMetadata(types.Rpc.SingleBytes request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBlockMetadataMethod(), getCallOptions(), request); } /** *
     * Return a single block's body, queried by hash or number and list parameters
     * 
*/ public types.Rpc.BlockBodyPaged getBlockBody(types.Rpc.BlockBodyParams request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBlockBodyMethod(), getCallOptions(), request); } /** *
     * Return a single transaction, queried by transaction hash
     * 
*/ public types.Blockchain.Tx getTX(types.Rpc.SingleBytes request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetTXMethod(), getCallOptions(), request); } /** *
     * Return information about transaction in block, queried by transaction hash
     * 
*/ public types.Blockchain.TxInBlock getBlockTX(types.Rpc.SingleBytes request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBlockTXMethod(), getCallOptions(), request); } /** *
     * Return transaction receipt, queried by transaction hash
     * 
*/ public types.Blockchain.Receipt getReceipt(types.Rpc.SingleBytes request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetReceiptMethod(), getCallOptions(), request); } /** *
     * Return ABI stored at contract address
     * 
*/ public types.Blockchain.ABI getABI(types.Rpc.SingleBytes request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetABIMethod(), getCallOptions(), request); } /** *
     * Sign and send a transaction from an unlocked account
     * 
*/ public types.Rpc.CommitResult sendTX(types.Blockchain.Tx request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSendTXMethod(), getCallOptions(), request); } /** *
     * Sign transaction with unlocked account
     * 
*/ public types.Blockchain.Tx signTX(types.Blockchain.Tx request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSignTXMethod(), getCallOptions(), request); } /** *
     * Verify validity of transaction
     * 
*/ public types.Rpc.VerifyResult verifyTX(types.Blockchain.Tx request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getVerifyTXMethod(), getCallOptions(), request); } /** *
     * Commit a signed transaction
     * 
*/ public types.Rpc.CommitResultList commitTX(types.Blockchain.TxList request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCommitTXMethod(), getCallOptions(), request); } /** *
     * Return state of account
     * 
*/ public types.Blockchain.State getState(types.Rpc.SingleBytes request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetStateMethod(), getCallOptions(), request); } /** *
     * Return state of account, including merkle proof
     * 
*/ public types.Blockchain.AccountProof getStateAndProof(types.Rpc.AccountAndRoot request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetStateAndProofMethod(), getCallOptions(), request); } /** *
     * Create a new account in this node
     * 
*/ public types.AccountOuterClass.Account createAccount(types.Rpc.Personal request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateAccountMethod(), getCallOptions(), request); } /** *
     * Return list of accounts in this node
     * 
*/ public types.AccountOuterClass.AccountList getAccounts(types.Rpc.Empty request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAccountsMethod(), getCallOptions(), request); } /** *
     * Lock account in this node
     * 
*/ public types.AccountOuterClass.Account lockAccount(types.Rpc.Personal request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getLockAccountMethod(), getCallOptions(), request); } /** *
     * Unlock account in this node
     * 
*/ public types.AccountOuterClass.Account unlockAccount(types.Rpc.Personal request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUnlockAccountMethod(), getCallOptions(), request); } /** *
     * Import account to this node
     * 
*/ public types.AccountOuterClass.Account importAccount(types.Rpc.ImportFormat request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportAccountMethod(), getCallOptions(), request); } /** *
     * Export account stored in this node as wif format
     * 
*/ public types.Rpc.SingleBytes exportAccount(types.Rpc.Personal request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExportAccountMethod(), getCallOptions(), request); } /** *
     * Export account stored in this node as keystore format
     * 
*/ public types.Rpc.SingleBytes exportAccountKeystore(types.Rpc.Personal request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExportAccountKeystoreMethod(), getCallOptions(), request); } /** *
     * Query a contract method
     * 
*/ public types.Rpc.SingleBytes queryContract(types.Blockchain.Query request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getQueryContractMethod(), getCallOptions(), request); } /** *
     * Query contract state
     * 
*/ public types.Blockchain.StateQueryProof queryContractState(types.Blockchain.StateQuery request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getQueryContractStateMethod(), getCallOptions(), request); } /** *
     * Return list of peers of this node and their state
     * 
*/ public types.Rpc.PeerList getPeers(types.Rpc.PeersParams request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetPeersMethod(), getCallOptions(), request); } /** *
     * Return result of vote
     * 
*/ public types.Rpc.VoteList getVotes(types.Rpc.VoteParams request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetVotesMethod(), getCallOptions(), request); } /** *
     * Return staking, voting info for account
     * 
*/ public types.Rpc.AccountVoteInfo getAccountVotes(types.Rpc.AccountAddress request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAccountVotesMethod(), getCallOptions(), request); } /** *
     * Return staking information
     * 
*/ public types.Rpc.Staking getStaking(types.Rpc.AccountAddress request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetStakingMethod(), getCallOptions(), request); } /** *
     * Return name information
     * 
*/ public types.Rpc.NameInfo getNameInfo(types.Rpc.Name request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetNameInfoMethod(), getCallOptions(), request); } /** *
     * Returns a stream of event as they get added to the blockchain
     * 
*/ public java.util.Iterator listEventStream( types.Blockchain.FilterInfo request) { return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getListEventStreamMethod(), getCallOptions(), request); } /** *
     * Returns list of event
     * 
*/ public types.Rpc.EventList listEvents(types.Blockchain.FilterInfo request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListEventsMethod(), getCallOptions(), request); } /** *
     * Returns configs and statuses of server
     * 
*/ public types.Rpc.ServerInfo getServerInfo(types.Rpc.KeyParams request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetServerInfoMethod(), getCallOptions(), request); } /** *
     * Returns status of consensus and bps
     * 
*/ public types.Rpc.ConsensusInfo getConsensusInfo(types.Rpc.Empty request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetConsensusInfoMethod(), getCallOptions(), request); } /** *
     * Add & remove member of raft cluster
     * 
*/ public types.Raft.MembershipChangeReply changeMembership(types.Raft.MembershipChange request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getChangeMembershipMethod(), getCallOptions(), request); } /** *
     * Returns enterprise config
     * 
*/ public types.Rpc.EnterpriseConfig getEnterpriseConfig(types.Rpc.EnterpriseConfigKey request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetEnterpriseConfigMethod(), getCallOptions(), request); } /** *
     * Return a status of changeCluster enterprise tx,  queried by requestID
     * 
*/ public types.Raft.ConfChangeProgress getConfChangeProgress(types.Rpc.SingleBytes request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetConfChangeProgressMethod(), getCallOptions(), request); } } /** *
   **
   * AergoRPCService is the main RPC service providing endpoints to interact 
   * with the node and blockchain. If not otherwise noted, methods are unary requests.
   * 
*/ public static final class AergoRPCServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private AergoRPCServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AergoRPCServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AergoRPCServiceFutureStub(channel, callOptions); } /** *
     * Returns the current state of this node
     * 
*/ public com.google.common.util.concurrent.ListenableFuture nodeState( types.Rpc.NodeReq request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getNodeStateMethod(), getCallOptions()), request); } /** *
     * Returns node metrics according to request 
     * 
*/ public com.google.common.util.concurrent.ListenableFuture metric( types.Metric.MetricsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getMetricMethod(), getCallOptions()), request); } /** *
     * Returns current blockchain status (best block's height and hash)
     * 
*/ public com.google.common.util.concurrent.ListenableFuture blockchain( types.Rpc.Empty request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBlockchainMethod(), getCallOptions()), request); } /** *
     * Returns current blockchain's basic information
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getChainInfo( types.Rpc.Empty request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetChainInfoMethod(), getCallOptions()), request); } /** *
     * Returns current chain statistics
     * 
*/ public com.google.common.util.concurrent.ListenableFuture chainStat( types.Rpc.Empty request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getChainStatMethod(), getCallOptions()), request); } /** *
     * Returns list of Blocks without body according to request
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listBlockHeaders( types.Rpc.ListParams request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBlockHeadersMethod(), getCallOptions()), request); } /** *
     * Returns list of block metadata (hash, header, and number of transactions) according to request
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listBlockMetadata( types.Rpc.ListParams request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBlockMetadataMethod(), getCallOptions()), request); } /** *
     * Return a single block incl. header and body, queried by hash or number
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getBlock( types.Rpc.SingleBytes request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBlockMethod(), getCallOptions()), request); } /** *
     * Return a single block's metdata (hash, header, and number of transactions), queried by hash or number
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getBlockMetadata( types.Rpc.SingleBytes request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBlockMetadataMethod(), getCallOptions()), request); } /** *
     * Return a single block's body, queried by hash or number and list parameters
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getBlockBody( types.Rpc.BlockBodyParams request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBlockBodyMethod(), getCallOptions()), request); } /** *
     * Return a single transaction, queried by transaction hash
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getTX( types.Rpc.SingleBytes request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetTXMethod(), getCallOptions()), request); } /** *
     * Return information about transaction in block, queried by transaction hash
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getBlockTX( types.Rpc.SingleBytes request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBlockTXMethod(), getCallOptions()), request); } /** *
     * Return transaction receipt, queried by transaction hash
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getReceipt( types.Rpc.SingleBytes request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetReceiptMethod(), getCallOptions()), request); } /** *
     * Return ABI stored at contract address
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getABI( types.Rpc.SingleBytes request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetABIMethod(), getCallOptions()), request); } /** *
     * Sign and send a transaction from an unlocked account
     * 
*/ public com.google.common.util.concurrent.ListenableFuture sendTX( types.Blockchain.Tx request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSendTXMethod(), getCallOptions()), request); } /** *
     * Sign transaction with unlocked account
     * 
*/ public com.google.common.util.concurrent.ListenableFuture signTX( types.Blockchain.Tx request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSignTXMethod(), getCallOptions()), request); } /** *
     * Verify validity of transaction
     * 
*/ public com.google.common.util.concurrent.ListenableFuture verifyTX( types.Blockchain.Tx request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getVerifyTXMethod(), getCallOptions()), request); } /** *
     * Commit a signed transaction
     * 
*/ public com.google.common.util.concurrent.ListenableFuture commitTX( types.Blockchain.TxList request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCommitTXMethod(), getCallOptions()), request); } /** *
     * Return state of account
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getState( types.Rpc.SingleBytes request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetStateMethod(), getCallOptions()), request); } /** *
     * Return state of account, including merkle proof
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getStateAndProof( types.Rpc.AccountAndRoot request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetStateAndProofMethod(), getCallOptions()), request); } /** *
     * Create a new account in this node
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createAccount( types.Rpc.Personal request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateAccountMethod(), getCallOptions()), request); } /** *
     * Return list of accounts in this node
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getAccounts( types.Rpc.Empty request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAccountsMethod(), getCallOptions()), request); } /** *
     * Lock account in this node
     * 
*/ public com.google.common.util.concurrent.ListenableFuture lockAccount( types.Rpc.Personal request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getLockAccountMethod(), getCallOptions()), request); } /** *
     * Unlock account in this node
     * 
*/ public com.google.common.util.concurrent.ListenableFuture unlockAccount( types.Rpc.Personal request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUnlockAccountMethod(), getCallOptions()), request); } /** *
     * Import account to this node
     * 
*/ public com.google.common.util.concurrent.ListenableFuture importAccount( types.Rpc.ImportFormat request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportAccountMethod(), getCallOptions()), request); } /** *
     * Export account stored in this node as wif format
     * 
*/ public com.google.common.util.concurrent.ListenableFuture exportAccount( types.Rpc.Personal request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportAccountMethod(), getCallOptions()), request); } /** *
     * Export account stored in this node as keystore format
     * 
*/ public com.google.common.util.concurrent.ListenableFuture exportAccountKeystore( types.Rpc.Personal request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportAccountKeystoreMethod(), getCallOptions()), request); } /** *
     * Query a contract method
     * 
*/ public com.google.common.util.concurrent.ListenableFuture queryContract( types.Blockchain.Query request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getQueryContractMethod(), getCallOptions()), request); } /** *
     * Query contract state
     * 
*/ public com.google.common.util.concurrent.ListenableFuture queryContractState( types.Blockchain.StateQuery request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getQueryContractStateMethod(), getCallOptions()), request); } /** *
     * Return list of peers of this node and their state
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getPeers( types.Rpc.PeersParams request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetPeersMethod(), getCallOptions()), request); } /** *
     * Return result of vote
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getVotes( types.Rpc.VoteParams request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetVotesMethod(), getCallOptions()), request); } /** *
     * Return staking, voting info for account
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getAccountVotes( types.Rpc.AccountAddress request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAccountVotesMethod(), getCallOptions()), request); } /** *
     * Return staking information
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getStaking( types.Rpc.AccountAddress request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetStakingMethod(), getCallOptions()), request); } /** *
     * Return name information
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getNameInfo( types.Rpc.Name request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetNameInfoMethod(), getCallOptions()), request); } /** *
     * Returns list of event
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listEvents( types.Blockchain.FilterInfo request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListEventsMethod(), getCallOptions()), request); } /** *
     * Returns configs and statuses of server
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getServerInfo( types.Rpc.KeyParams request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetServerInfoMethod(), getCallOptions()), request); } /** *
     * Returns status of consensus and bps
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getConsensusInfo( types.Rpc.Empty request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetConsensusInfoMethod(), getCallOptions()), request); } /** *
     * Add & remove member of raft cluster
     * 
*/ public com.google.common.util.concurrent.ListenableFuture changeMembership( types.Raft.MembershipChange request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getChangeMembershipMethod(), getCallOptions()), request); } /** *
     * Returns enterprise config
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getEnterpriseConfig( types.Rpc.EnterpriseConfigKey request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetEnterpriseConfigMethod(), getCallOptions()), request); } /** *
     * Return a status of changeCluster enterprise tx,  queried by requestID
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getConfChangeProgress( types.Rpc.SingleBytes request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetConfChangeProgressMethod(), getCallOptions()), request); } } private static final int METHODID_NODE_STATE = 0; private static final int METHODID_METRIC = 1; private static final int METHODID_BLOCKCHAIN = 2; private static final int METHODID_GET_CHAIN_INFO = 3; private static final int METHODID_CHAIN_STAT = 4; private static final int METHODID_LIST_BLOCK_HEADERS = 5; private static final int METHODID_LIST_BLOCK_METADATA = 6; private static final int METHODID_LIST_BLOCK_STREAM = 7; private static final int METHODID_LIST_BLOCK_METADATA_STREAM = 8; private static final int METHODID_GET_BLOCK = 9; private static final int METHODID_GET_BLOCK_METADATA = 10; private static final int METHODID_GET_BLOCK_BODY = 11; private static final int METHODID_GET_TX = 12; private static final int METHODID_GET_BLOCK_TX = 13; private static final int METHODID_GET_RECEIPT = 14; private static final int METHODID_GET_ABI = 15; private static final int METHODID_SEND_TX = 16; private static final int METHODID_SIGN_TX = 17; private static final int METHODID_VERIFY_TX = 18; private static final int METHODID_COMMIT_TX = 19; private static final int METHODID_GET_STATE = 20; private static final int METHODID_GET_STATE_AND_PROOF = 21; private static final int METHODID_CREATE_ACCOUNT = 22; private static final int METHODID_GET_ACCOUNTS = 23; private static final int METHODID_LOCK_ACCOUNT = 24; private static final int METHODID_UNLOCK_ACCOUNT = 25; private static final int METHODID_IMPORT_ACCOUNT = 26; private static final int METHODID_EXPORT_ACCOUNT = 27; private static final int METHODID_EXPORT_ACCOUNT_KEYSTORE = 28; private static final int METHODID_QUERY_CONTRACT = 29; private static final int METHODID_QUERY_CONTRACT_STATE = 30; private static final int METHODID_GET_PEERS = 31; private static final int METHODID_GET_VOTES = 32; private static final int METHODID_GET_ACCOUNT_VOTES = 33; private static final int METHODID_GET_STAKING = 34; private static final int METHODID_GET_NAME_INFO = 35; private static final int METHODID_LIST_EVENT_STREAM = 36; private static final int METHODID_LIST_EVENTS = 37; private static final int METHODID_GET_SERVER_INFO = 38; private static final int METHODID_GET_CONSENSUS_INFO = 39; private static final int METHODID_CHANGE_MEMBERSHIP = 40; private static final int METHODID_GET_ENTERPRISE_CONFIG = 41; private static final int METHODID_GET_CONF_CHANGE_PROGRESS = 42; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AergoRPCServiceImplBase serviceImpl; private final int methodId; MethodHandlers(AergoRPCServiceImplBase serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_NODE_STATE: serviceImpl.nodeState((types.Rpc.NodeReq) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_METRIC: serviceImpl.metric((types.Metric.MetricsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BLOCKCHAIN: serviceImpl.blockchain((types.Rpc.Empty) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_CHAIN_INFO: serviceImpl.getChainInfo((types.Rpc.Empty) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CHAIN_STAT: serviceImpl.chainStat((types.Rpc.Empty) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_BLOCK_HEADERS: serviceImpl.listBlockHeaders((types.Rpc.ListParams) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_BLOCK_METADATA: serviceImpl.listBlockMetadata((types.Rpc.ListParams) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_BLOCK_STREAM: serviceImpl.listBlockStream((types.Rpc.Empty) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_BLOCK_METADATA_STREAM: serviceImpl.listBlockMetadataStream((types.Rpc.Empty) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BLOCK: serviceImpl.getBlock((types.Rpc.SingleBytes) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BLOCK_METADATA: serviceImpl.getBlockMetadata((types.Rpc.SingleBytes) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BLOCK_BODY: serviceImpl.getBlockBody((types.Rpc.BlockBodyParams) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_TX: serviceImpl.getTX((types.Rpc.SingleBytes) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BLOCK_TX: serviceImpl.getBlockTX((types.Rpc.SingleBytes) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_RECEIPT: serviceImpl.getReceipt((types.Rpc.SingleBytes) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_ABI: serviceImpl.getABI((types.Rpc.SingleBytes) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SEND_TX: serviceImpl.sendTX((types.Blockchain.Tx) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SIGN_TX: serviceImpl.signTX((types.Blockchain.Tx) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_VERIFY_TX: serviceImpl.verifyTX((types.Blockchain.Tx) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COMMIT_TX: serviceImpl.commitTX((types.Blockchain.TxList) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_STATE: serviceImpl.getState((types.Rpc.SingleBytes) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_STATE_AND_PROOF: serviceImpl.getStateAndProof((types.Rpc.AccountAndRoot) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_ACCOUNT: serviceImpl.createAccount((types.Rpc.Personal) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_ACCOUNTS: serviceImpl.getAccounts((types.Rpc.Empty) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LOCK_ACCOUNT: serviceImpl.lockAccount((types.Rpc.Personal) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UNLOCK_ACCOUNT: serviceImpl.unlockAccount((types.Rpc.Personal) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_IMPORT_ACCOUNT: serviceImpl.importAccount((types.Rpc.ImportFormat) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_EXPORT_ACCOUNT: serviceImpl.exportAccount((types.Rpc.Personal) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_EXPORT_ACCOUNT_KEYSTORE: serviceImpl.exportAccountKeystore((types.Rpc.Personal) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_QUERY_CONTRACT: serviceImpl.queryContract((types.Blockchain.Query) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_QUERY_CONTRACT_STATE: serviceImpl.queryContractState((types.Blockchain.StateQuery) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_PEERS: serviceImpl.getPeers((types.Rpc.PeersParams) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_VOTES: serviceImpl.getVotes((types.Rpc.VoteParams) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_ACCOUNT_VOTES: serviceImpl.getAccountVotes((types.Rpc.AccountAddress) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_STAKING: serviceImpl.getStaking((types.Rpc.AccountAddress) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_NAME_INFO: serviceImpl.getNameInfo((types.Rpc.Name) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_EVENT_STREAM: serviceImpl.listEventStream((types.Blockchain.FilterInfo) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_EVENTS: serviceImpl.listEvents((types.Blockchain.FilterInfo) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SERVER_INFO: serviceImpl.getServerInfo((types.Rpc.KeyParams) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_CONSENSUS_INFO: serviceImpl.getConsensusInfo((types.Rpc.Empty) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CHANGE_MEMBERSHIP: serviceImpl.changeMembership((types.Raft.MembershipChange) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_ENTERPRISE_CONFIG: serviceImpl.getEnterpriseConfig((types.Rpc.EnterpriseConfigKey) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_CONF_CHANGE_PROGRESS: serviceImpl.getConfChangeProgress((types.Rpc.SingleBytes) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } private static abstract class AergoRPCServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { AergoRPCServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return types.Rpc.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("AergoRPCService"); } } private static final class AergoRPCServiceFileDescriptorSupplier extends AergoRPCServiceBaseDescriptorSupplier { AergoRPCServiceFileDescriptorSupplier() {} } private static final class AergoRPCServiceMethodDescriptorSupplier extends AergoRPCServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; AergoRPCServiceMethodDescriptorSupplier(String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (AergoRPCServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new AergoRPCServiceFileDescriptorSupplier()) .addMethod(getNodeStateMethod()) .addMethod(getMetricMethod()) .addMethod(getBlockchainMethod()) .addMethod(getGetChainInfoMethod()) .addMethod(getChainStatMethod()) .addMethod(getListBlockHeadersMethod()) .addMethod(getListBlockMetadataMethod()) .addMethod(getListBlockStreamMethod()) .addMethod(getListBlockMetadataStreamMethod()) .addMethod(getGetBlockMethod()) .addMethod(getGetBlockMetadataMethod()) .addMethod(getGetBlockBodyMethod()) .addMethod(getGetTXMethod()) .addMethod(getGetBlockTXMethod()) .addMethod(getGetReceiptMethod()) .addMethod(getGetABIMethod()) .addMethod(getSendTXMethod()) .addMethod(getSignTXMethod()) .addMethod(getVerifyTXMethod()) .addMethod(getCommitTXMethod()) .addMethod(getGetStateMethod()) .addMethod(getGetStateAndProofMethod()) .addMethod(getCreateAccountMethod()) .addMethod(getGetAccountsMethod()) .addMethod(getLockAccountMethod()) .addMethod(getUnlockAccountMethod()) .addMethod(getImportAccountMethod()) .addMethod(getExportAccountMethod()) .addMethod(getExportAccountKeystoreMethod()) .addMethod(getQueryContractMethod()) .addMethod(getQueryContractStateMethod()) .addMethod(getGetPeersMethod()) .addMethod(getGetVotesMethod()) .addMethod(getGetAccountVotesMethod()) .addMethod(getGetStakingMethod()) .addMethod(getGetNameInfoMethod()) .addMethod(getListEventStreamMethod()) .addMethod(getListEventsMethod()) .addMethod(getGetServerInfoMethod()) .addMethod(getGetConsensusInfoMethod()) .addMethod(getChangeMembershipMethod()) .addMethod(getGetEnterpriseConfigMethod()) .addMethod(getGetConfChangeProgressMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy