Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
main.org.onflow.protobuf.legacy.access.AccessAPIGrpc Maven / Gradle / Ivy
package org.onflow.protobuf.legacy.access;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* AccessAPI is the public-facing API provided by access nodes.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.35.0)",
comments = "Source: flow/legacy/access/access.proto")
public final class AccessAPIGrpc {
private AccessAPIGrpc() {}
public static final String SERVICE_NAME = "access.AccessAPI";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getPingMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Ping",
requestType = org.onflow.protobuf.legacy.access.Access.PingRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.PingResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getPingMethod() {
io.grpc.MethodDescriptor getPingMethod;
if ((getPingMethod = AccessAPIGrpc.getPingMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getPingMethod = AccessAPIGrpc.getPingMethod) == null) {
AccessAPIGrpc.getPingMethod = getPingMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Ping"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.PingRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.PingResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("Ping"))
.build();
}
}
}
return getPingMethod;
}
private static volatile io.grpc.MethodDescriptor getGetLatestBlockHeaderMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetLatestBlockHeader",
requestType = org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetLatestBlockHeaderMethod() {
io.grpc.MethodDescriptor getGetLatestBlockHeaderMethod;
if ((getGetLatestBlockHeaderMethod = AccessAPIGrpc.getGetLatestBlockHeaderMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getGetLatestBlockHeaderMethod = AccessAPIGrpc.getGetLatestBlockHeaderMethod) == null) {
AccessAPIGrpc.getGetLatestBlockHeaderMethod = getGetLatestBlockHeaderMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLatestBlockHeader"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("GetLatestBlockHeader"))
.build();
}
}
}
return getGetLatestBlockHeaderMethod;
}
private static volatile io.grpc.MethodDescriptor getGetBlockHeaderByIDMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBlockHeaderByID",
requestType = org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetBlockHeaderByIDMethod() {
io.grpc.MethodDescriptor getGetBlockHeaderByIDMethod;
if ((getGetBlockHeaderByIDMethod = AccessAPIGrpc.getGetBlockHeaderByIDMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getGetBlockHeaderByIDMethod = AccessAPIGrpc.getGetBlockHeaderByIDMethod) == null) {
AccessAPIGrpc.getGetBlockHeaderByIDMethod = getGetBlockHeaderByIDMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockHeaderByID"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("GetBlockHeaderByID"))
.build();
}
}
}
return getGetBlockHeaderByIDMethod;
}
private static volatile io.grpc.MethodDescriptor getGetBlockHeaderByHeightMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBlockHeaderByHeight",
requestType = org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetBlockHeaderByHeightMethod() {
io.grpc.MethodDescriptor getGetBlockHeaderByHeightMethod;
if ((getGetBlockHeaderByHeightMethod = AccessAPIGrpc.getGetBlockHeaderByHeightMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getGetBlockHeaderByHeightMethod = AccessAPIGrpc.getGetBlockHeaderByHeightMethod) == null) {
AccessAPIGrpc.getGetBlockHeaderByHeightMethod = getGetBlockHeaderByHeightMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockHeaderByHeight"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("GetBlockHeaderByHeight"))
.build();
}
}
}
return getGetBlockHeaderByHeightMethod;
}
private static volatile io.grpc.MethodDescriptor getGetLatestBlockMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetLatestBlock",
requestType = org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.BlockResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetLatestBlockMethod() {
io.grpc.MethodDescriptor getGetLatestBlockMethod;
if ((getGetLatestBlockMethod = AccessAPIGrpc.getGetLatestBlockMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getGetLatestBlockMethod = AccessAPIGrpc.getGetLatestBlockMethod) == null) {
AccessAPIGrpc.getGetLatestBlockMethod = getGetLatestBlockMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLatestBlock"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.BlockResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("GetLatestBlock"))
.build();
}
}
}
return getGetLatestBlockMethod;
}
private static volatile io.grpc.MethodDescriptor getGetBlockByIDMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBlockByID",
requestType = org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.BlockResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetBlockByIDMethod() {
io.grpc.MethodDescriptor getGetBlockByIDMethod;
if ((getGetBlockByIDMethod = AccessAPIGrpc.getGetBlockByIDMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getGetBlockByIDMethod = AccessAPIGrpc.getGetBlockByIDMethod) == null) {
AccessAPIGrpc.getGetBlockByIDMethod = getGetBlockByIDMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByID"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.BlockResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("GetBlockByID"))
.build();
}
}
}
return getGetBlockByIDMethod;
}
private static volatile io.grpc.MethodDescriptor getGetBlockByHeightMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBlockByHeight",
requestType = org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.BlockResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetBlockByHeightMethod() {
io.grpc.MethodDescriptor getGetBlockByHeightMethod;
if ((getGetBlockByHeightMethod = AccessAPIGrpc.getGetBlockByHeightMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getGetBlockByHeightMethod = AccessAPIGrpc.getGetBlockByHeightMethod) == null) {
AccessAPIGrpc.getGetBlockByHeightMethod = getGetBlockByHeightMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByHeight"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.BlockResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("GetBlockByHeight"))
.build();
}
}
}
return getGetBlockByHeightMethod;
}
private static volatile io.grpc.MethodDescriptor getGetCollectionByIDMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetCollectionByID",
requestType = org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.CollectionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetCollectionByIDMethod() {
io.grpc.MethodDescriptor getGetCollectionByIDMethod;
if ((getGetCollectionByIDMethod = AccessAPIGrpc.getGetCollectionByIDMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getGetCollectionByIDMethod = AccessAPIGrpc.getGetCollectionByIDMethod) == null) {
AccessAPIGrpc.getGetCollectionByIDMethod = getGetCollectionByIDMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCollectionByID"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.CollectionResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("GetCollectionByID"))
.build();
}
}
}
return getGetCollectionByIDMethod;
}
private static volatile io.grpc.MethodDescriptor getSendTransactionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SendTransaction",
requestType = org.onflow.protobuf.legacy.access.Access.SendTransactionRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.SendTransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSendTransactionMethod() {
io.grpc.MethodDescriptor getSendTransactionMethod;
if ((getSendTransactionMethod = AccessAPIGrpc.getSendTransactionMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getSendTransactionMethod = AccessAPIGrpc.getSendTransactionMethod) == null) {
AccessAPIGrpc.getSendTransactionMethod = getSendTransactionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendTransaction"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.SendTransactionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.SendTransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("SendTransaction"))
.build();
}
}
}
return getSendTransactionMethod;
}
private static volatile io.grpc.MethodDescriptor getGetTransactionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetTransaction",
requestType = org.onflow.protobuf.legacy.access.Access.GetTransactionRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.TransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetTransactionMethod() {
io.grpc.MethodDescriptor getGetTransactionMethod;
if ((getGetTransactionMethod = AccessAPIGrpc.getGetTransactionMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getGetTransactionMethod = AccessAPIGrpc.getGetTransactionMethod) == null) {
AccessAPIGrpc.getGetTransactionMethod = getGetTransactionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransaction"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetTransactionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.TransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("GetTransaction"))
.build();
}
}
}
return getGetTransactionMethod;
}
private static volatile io.grpc.MethodDescriptor getGetTransactionResultMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetTransactionResult",
requestType = org.onflow.protobuf.legacy.access.Access.GetTransactionRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.TransactionResultResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetTransactionResultMethod() {
io.grpc.MethodDescriptor getGetTransactionResultMethod;
if ((getGetTransactionResultMethod = AccessAPIGrpc.getGetTransactionResultMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getGetTransactionResultMethod = AccessAPIGrpc.getGetTransactionResultMethod) == null) {
AccessAPIGrpc.getGetTransactionResultMethod = getGetTransactionResultMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionResult"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetTransactionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.TransactionResultResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("GetTransactionResult"))
.build();
}
}
}
return getGetTransactionResultMethod;
}
private static volatile io.grpc.MethodDescriptor getGetAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetAccount",
requestType = org.onflow.protobuf.legacy.access.Access.GetAccountRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.GetAccountResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetAccountMethod() {
io.grpc.MethodDescriptor getGetAccountMethod;
if ((getGetAccountMethod = AccessAPIGrpc.getGetAccountMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getGetAccountMethod = AccessAPIGrpc.getGetAccountMethod) == null) {
AccessAPIGrpc.getGetAccountMethod = getGetAccountMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccount"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetAccountRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetAccountResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("GetAccount"))
.build();
}
}
}
return getGetAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getGetAccountAtLatestBlockMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetAccountAtLatestBlock",
requestType = org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.AccountResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetAccountAtLatestBlockMethod() {
io.grpc.MethodDescriptor getGetAccountAtLatestBlockMethod;
if ((getGetAccountAtLatestBlockMethod = AccessAPIGrpc.getGetAccountAtLatestBlockMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getGetAccountAtLatestBlockMethod = AccessAPIGrpc.getGetAccountAtLatestBlockMethod) == null) {
AccessAPIGrpc.getGetAccountAtLatestBlockMethod = getGetAccountAtLatestBlockMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccountAtLatestBlock"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.AccountResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("GetAccountAtLatestBlock"))
.build();
}
}
}
return getGetAccountAtLatestBlockMethod;
}
private static volatile io.grpc.MethodDescriptor getGetAccountAtBlockHeightMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetAccountAtBlockHeight",
requestType = org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.AccountResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetAccountAtBlockHeightMethod() {
io.grpc.MethodDescriptor getGetAccountAtBlockHeightMethod;
if ((getGetAccountAtBlockHeightMethod = AccessAPIGrpc.getGetAccountAtBlockHeightMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getGetAccountAtBlockHeightMethod = AccessAPIGrpc.getGetAccountAtBlockHeightMethod) == null) {
AccessAPIGrpc.getGetAccountAtBlockHeightMethod = getGetAccountAtBlockHeightMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccountAtBlockHeight"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.AccountResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("GetAccountAtBlockHeight"))
.build();
}
}
}
return getGetAccountAtBlockHeightMethod;
}
private static volatile io.grpc.MethodDescriptor getExecuteScriptAtLatestBlockMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ExecuteScriptAtLatestBlock",
requestType = org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getExecuteScriptAtLatestBlockMethod() {
io.grpc.MethodDescriptor getExecuteScriptAtLatestBlockMethod;
if ((getExecuteScriptAtLatestBlockMethod = AccessAPIGrpc.getExecuteScriptAtLatestBlockMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getExecuteScriptAtLatestBlockMethod = AccessAPIGrpc.getExecuteScriptAtLatestBlockMethod) == null) {
AccessAPIGrpc.getExecuteScriptAtLatestBlockMethod = getExecuteScriptAtLatestBlockMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteScriptAtLatestBlock"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("ExecuteScriptAtLatestBlock"))
.build();
}
}
}
return getExecuteScriptAtLatestBlockMethod;
}
private static volatile io.grpc.MethodDescriptor getExecuteScriptAtBlockIDMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ExecuteScriptAtBlockID",
requestType = org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getExecuteScriptAtBlockIDMethod() {
io.grpc.MethodDescriptor getExecuteScriptAtBlockIDMethod;
if ((getExecuteScriptAtBlockIDMethod = AccessAPIGrpc.getExecuteScriptAtBlockIDMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getExecuteScriptAtBlockIDMethod = AccessAPIGrpc.getExecuteScriptAtBlockIDMethod) == null) {
AccessAPIGrpc.getExecuteScriptAtBlockIDMethod = getExecuteScriptAtBlockIDMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteScriptAtBlockID"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("ExecuteScriptAtBlockID"))
.build();
}
}
}
return getExecuteScriptAtBlockIDMethod;
}
private static volatile io.grpc.MethodDescriptor getExecuteScriptAtBlockHeightMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ExecuteScriptAtBlockHeight",
requestType = org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getExecuteScriptAtBlockHeightMethod() {
io.grpc.MethodDescriptor getExecuteScriptAtBlockHeightMethod;
if ((getExecuteScriptAtBlockHeightMethod = AccessAPIGrpc.getExecuteScriptAtBlockHeightMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getExecuteScriptAtBlockHeightMethod = AccessAPIGrpc.getExecuteScriptAtBlockHeightMethod) == null) {
AccessAPIGrpc.getExecuteScriptAtBlockHeightMethod = getExecuteScriptAtBlockHeightMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteScriptAtBlockHeight"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("ExecuteScriptAtBlockHeight"))
.build();
}
}
}
return getExecuteScriptAtBlockHeightMethod;
}
private static volatile io.grpc.MethodDescriptor getGetEventsForHeightRangeMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetEventsForHeightRange",
requestType = org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.EventsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetEventsForHeightRangeMethod() {
io.grpc.MethodDescriptor getGetEventsForHeightRangeMethod;
if ((getGetEventsForHeightRangeMethod = AccessAPIGrpc.getGetEventsForHeightRangeMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getGetEventsForHeightRangeMethod = AccessAPIGrpc.getGetEventsForHeightRangeMethod) == null) {
AccessAPIGrpc.getGetEventsForHeightRangeMethod = getGetEventsForHeightRangeMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEventsForHeightRange"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.EventsResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("GetEventsForHeightRange"))
.build();
}
}
}
return getGetEventsForHeightRangeMethod;
}
private static volatile io.grpc.MethodDescriptor getGetEventsForBlockIDsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetEventsForBlockIDs",
requestType = org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.EventsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetEventsForBlockIDsMethod() {
io.grpc.MethodDescriptor getGetEventsForBlockIDsMethod;
if ((getGetEventsForBlockIDsMethod = AccessAPIGrpc.getGetEventsForBlockIDsMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getGetEventsForBlockIDsMethod = AccessAPIGrpc.getGetEventsForBlockIDsMethod) == null) {
AccessAPIGrpc.getGetEventsForBlockIDsMethod = getGetEventsForBlockIDsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEventsForBlockIDs"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.EventsResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("GetEventsForBlockIDs"))
.build();
}
}
}
return getGetEventsForBlockIDsMethod;
}
private static volatile io.grpc.MethodDescriptor getGetNetworkParametersMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetNetworkParameters",
requestType = org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest.class,
responseType = org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetNetworkParametersMethod() {
io.grpc.MethodDescriptor getGetNetworkParametersMethod;
if ((getGetNetworkParametersMethod = AccessAPIGrpc.getGetNetworkParametersMethod) == null) {
synchronized (AccessAPIGrpc.class) {
if ((getGetNetworkParametersMethod = AccessAPIGrpc.getGetNetworkParametersMethod) == null) {
AccessAPIGrpc.getGetNetworkParametersMethod = getGetNetworkParametersMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetworkParameters"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessAPIMethodDescriptorSupplier("GetNetworkParameters"))
.build();
}
}
}
return getGetNetworkParametersMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static AccessAPIStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AccessAPIStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AccessAPIStub(channel, callOptions);
}
};
return AccessAPIStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static AccessAPIBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AccessAPIBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AccessAPIBlockingStub(channel, callOptions);
}
};
return AccessAPIBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AccessAPIFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AccessAPIFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AccessAPIFutureStub(channel, callOptions);
}
};
return AccessAPIFutureStub.newStub(factory, channel);
}
/**
*
* AccessAPI is the public-facing API provided by access nodes.
*
*/
public static abstract class AccessAPIImplBase implements io.grpc.BindableService {
/**
*
* Ping is used to check if the access node is alive and healthy.
*
*/
public void ping(org.onflow.protobuf.legacy.access.Access.PingRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPingMethod(), responseObserver);
}
/**
*
* GetLatestBlockHeader gets the latest sealed or unsealed block header.
*
*/
public void getLatestBlockHeader(org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLatestBlockHeaderMethod(), responseObserver);
}
/**
*
* GetBlockHeaderByID gets a block header by ID.
*
*/
public void getBlockHeaderByID(org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockHeaderByIDMethod(), responseObserver);
}
/**
*
* GetBlockHeaderByHeight gets a block header by height.
*
*/
public void getBlockHeaderByHeight(org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockHeaderByHeightMethod(), responseObserver);
}
/**
*
* GetLatestBlock gets the full payload of the latest sealed or unsealed
* block.
*
*/
public void getLatestBlock(org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLatestBlockMethod(), responseObserver);
}
/**
*
* GetBlockByID gets a full block by ID.
*
*/
public void getBlockByID(org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockByIDMethod(), responseObserver);
}
/**
*
* GetBlockByHeight gets a full block by height.
*
*/
public void getBlockByHeight(org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockByHeightMethod(), responseObserver);
}
/**
*
* GetCollectionByID gets a collection by ID.
*
*/
public void getCollectionByID(org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCollectionByIDMethod(), responseObserver);
}
/**
*
* SendTransaction submits a transaction to the network.
*
*/
public void sendTransaction(org.onflow.protobuf.legacy.access.Access.SendTransactionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendTransactionMethod(), responseObserver);
}
/**
*
* GetTransaction gets a transaction by ID.
*
*/
public void getTransaction(org.onflow.protobuf.legacy.access.Access.GetTransactionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTransactionMethod(), responseObserver);
}
/**
*
* GetTransactionResult gets the result of a transaction.
*
*/
public void getTransactionResult(org.onflow.protobuf.legacy.access.Access.GetTransactionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTransactionResultMethod(), responseObserver);
}
/**
*
* GetAccount is an alias for GetAccountAtLatestBlock.
* Warning: this function is deprecated. It behaves identically to
* GetAccountAtLatestBlock and will be removed in a future version.
*
*/
public void getAccount(org.onflow.protobuf.legacy.access.Access.GetAccountRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountMethod(), responseObserver);
}
/**
*
* GetAccountAtLatestBlock gets an account by address from the latest sealed
* execution state.
*
*/
public void getAccountAtLatestBlock(org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountAtLatestBlockMethod(), responseObserver);
}
/**
*
* GetAccountAtBlockHeight gets an account by address at the given block
* height
*
*/
public void getAccountAtBlockHeight(org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountAtBlockHeightMethod(), responseObserver);
}
/**
*
* ExecuteScriptAtLatestBlock executes a read-only Cadence script against the
* latest sealed execution state.
*
*/
public void executeScriptAtLatestBlock(org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExecuteScriptAtLatestBlockMethod(), responseObserver);
}
/**
*
* ExecuteScriptAtBlockID executes a ready-only Cadence script against the
* execution state at the block with the given ID.
*
*/
public void executeScriptAtBlockID(org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExecuteScriptAtBlockIDMethod(), responseObserver);
}
/**
*
* ExecuteScriptAtBlockHeight executes a ready-only Cadence script against the
* execution state at the given block height.
*
*/
public void executeScriptAtBlockHeight(org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExecuteScriptAtBlockHeightMethod(), responseObserver);
}
/**
*
* GetEventsForHeightRange retrieves events emitted within the specified block
* range.
*
*/
public void getEventsForHeightRange(org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEventsForHeightRangeMethod(), responseObserver);
}
/**
*
* GetEventsForBlockIDs retrieves events for the specified block IDs and event
* type.
*
*/
public void getEventsForBlockIDs(org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEventsForBlockIDsMethod(), responseObserver);
}
/**
*
* GetNetworkParameters retrieves the Flow network details
*
*/
public void getNetworkParameters(org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNetworkParametersMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getPingMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.PingRequest,
org.onflow.protobuf.legacy.access.Access.PingResponse>(
this, METHODID_PING)))
.addMethod(
getGetLatestBlockHeaderMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest,
org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse>(
this, METHODID_GET_LATEST_BLOCK_HEADER)))
.addMethod(
getGetBlockHeaderByIDMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest,
org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse>(
this, METHODID_GET_BLOCK_HEADER_BY_ID)))
.addMethod(
getGetBlockHeaderByHeightMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest,
org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse>(
this, METHODID_GET_BLOCK_HEADER_BY_HEIGHT)))
.addMethod(
getGetLatestBlockMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest,
org.onflow.protobuf.legacy.access.Access.BlockResponse>(
this, METHODID_GET_LATEST_BLOCK)))
.addMethod(
getGetBlockByIDMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest,
org.onflow.protobuf.legacy.access.Access.BlockResponse>(
this, METHODID_GET_BLOCK_BY_ID)))
.addMethod(
getGetBlockByHeightMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest,
org.onflow.protobuf.legacy.access.Access.BlockResponse>(
this, METHODID_GET_BLOCK_BY_HEIGHT)))
.addMethod(
getGetCollectionByIDMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest,
org.onflow.protobuf.legacy.access.Access.CollectionResponse>(
this, METHODID_GET_COLLECTION_BY_ID)))
.addMethod(
getSendTransactionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.SendTransactionRequest,
org.onflow.protobuf.legacy.access.Access.SendTransactionResponse>(
this, METHODID_SEND_TRANSACTION)))
.addMethod(
getGetTransactionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.GetTransactionRequest,
org.onflow.protobuf.legacy.access.Access.TransactionResponse>(
this, METHODID_GET_TRANSACTION)))
.addMethod(
getGetTransactionResultMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.GetTransactionRequest,
org.onflow.protobuf.legacy.access.Access.TransactionResultResponse>(
this, METHODID_GET_TRANSACTION_RESULT)))
.addMethod(
getGetAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.GetAccountRequest,
org.onflow.protobuf.legacy.access.Access.GetAccountResponse>(
this, METHODID_GET_ACCOUNT)))
.addMethod(
getGetAccountAtLatestBlockMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest,
org.onflow.protobuf.legacy.access.Access.AccountResponse>(
this, METHODID_GET_ACCOUNT_AT_LATEST_BLOCK)))
.addMethod(
getGetAccountAtBlockHeightMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest,
org.onflow.protobuf.legacy.access.Access.AccountResponse>(
this, METHODID_GET_ACCOUNT_AT_BLOCK_HEIGHT)))
.addMethod(
getExecuteScriptAtLatestBlockMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest,
org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse>(
this, METHODID_EXECUTE_SCRIPT_AT_LATEST_BLOCK)))
.addMethod(
getExecuteScriptAtBlockIDMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest,
org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse>(
this, METHODID_EXECUTE_SCRIPT_AT_BLOCK_ID)))
.addMethod(
getExecuteScriptAtBlockHeightMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest,
org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse>(
this, METHODID_EXECUTE_SCRIPT_AT_BLOCK_HEIGHT)))
.addMethod(
getGetEventsForHeightRangeMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest,
org.onflow.protobuf.legacy.access.Access.EventsResponse>(
this, METHODID_GET_EVENTS_FOR_HEIGHT_RANGE)))
.addMethod(
getGetEventsForBlockIDsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest,
org.onflow.protobuf.legacy.access.Access.EventsResponse>(
this, METHODID_GET_EVENTS_FOR_BLOCK_IDS)))
.addMethod(
getGetNetworkParametersMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest,
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse>(
this, METHODID_GET_NETWORK_PARAMETERS)))
.build();
}
}
/**
*
* AccessAPI is the public-facing API provided by access nodes.
*
*/
public static final class AccessAPIStub extends io.grpc.stub.AbstractAsyncStub {
private AccessAPIStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AccessAPIStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AccessAPIStub(channel, callOptions);
}
/**
*
* Ping is used to check if the access node is alive and healthy.
*
*/
public void ping(org.onflow.protobuf.legacy.access.Access.PingRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getPingMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetLatestBlockHeader gets the latest sealed or unsealed block header.
*
*/
public void getLatestBlockHeader(org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetLatestBlockHeaderMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetBlockHeaderByID gets a block header by ID.
*
*/
public void getBlockHeaderByID(org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetBlockHeaderByIDMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetBlockHeaderByHeight gets a block header by height.
*
*/
public void getBlockHeaderByHeight(org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetBlockHeaderByHeightMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetLatestBlock gets the full payload of the latest sealed or unsealed
* block.
*
*/
public void getLatestBlock(org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetLatestBlockMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetBlockByID gets a full block by ID.
*
*/
public void getBlockByID(org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetBlockByIDMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetBlockByHeight gets a full block by height.
*
*/
public void getBlockByHeight(org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetBlockByHeightMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetCollectionByID gets a collection by ID.
*
*/
public void getCollectionByID(org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetCollectionByIDMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* SendTransaction submits a transaction to the network.
*
*/
public void sendTransaction(org.onflow.protobuf.legacy.access.Access.SendTransactionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSendTransactionMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetTransaction gets a transaction by ID.
*
*/
public void getTransaction(org.onflow.protobuf.legacy.access.Access.GetTransactionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetTransactionMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetTransactionResult gets the result of a transaction.
*
*/
public void getTransactionResult(org.onflow.protobuf.legacy.access.Access.GetTransactionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetTransactionResultMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetAccount is an alias for GetAccountAtLatestBlock.
* Warning: this function is deprecated. It behaves identically to
* GetAccountAtLatestBlock and will be removed in a future version.
*
*/
public void getAccount(org.onflow.protobuf.legacy.access.Access.GetAccountRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetAccountMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetAccountAtLatestBlock gets an account by address from the latest sealed
* execution state.
*
*/
public void getAccountAtLatestBlock(org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetAccountAtLatestBlockMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetAccountAtBlockHeight gets an account by address at the given block
* height
*
*/
public void getAccountAtBlockHeight(org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetAccountAtBlockHeightMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* ExecuteScriptAtLatestBlock executes a read-only Cadence script against the
* latest sealed execution state.
*
*/
public void executeScriptAtLatestBlock(org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getExecuteScriptAtLatestBlockMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* ExecuteScriptAtBlockID executes a ready-only Cadence script against the
* execution state at the block with the given ID.
*
*/
public void executeScriptAtBlockID(org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getExecuteScriptAtBlockIDMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* ExecuteScriptAtBlockHeight executes a ready-only Cadence script against the
* execution state at the given block height.
*
*/
public void executeScriptAtBlockHeight(org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getExecuteScriptAtBlockHeightMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetEventsForHeightRange retrieves events emitted within the specified block
* range.
*
*/
public void getEventsForHeightRange(org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetEventsForHeightRangeMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetEventsForBlockIDs retrieves events for the specified block IDs and event
* type.
*
*/
public void getEventsForBlockIDs(org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetEventsForBlockIDsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetNetworkParameters retrieves the Flow network details
*
*/
public void getNetworkParameters(org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetNetworkParametersMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* AccessAPI is the public-facing API provided by access nodes.
*
*/
public static final class AccessAPIBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private AccessAPIBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AccessAPIBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AccessAPIBlockingStub(channel, callOptions);
}
/**
*
* Ping is used to check if the access node is alive and healthy.
*
*/
public org.onflow.protobuf.legacy.access.Access.PingResponse ping(org.onflow.protobuf.legacy.access.Access.PingRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPingMethod(), getCallOptions(), request);
}
/**
*
* GetLatestBlockHeader gets the latest sealed or unsealed block header.
*
*/
public org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse getLatestBlockHeader(org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetLatestBlockHeaderMethod(), getCallOptions(), request);
}
/**
*
* GetBlockHeaderByID gets a block header by ID.
*
*/
public org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse getBlockHeaderByID(org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetBlockHeaderByIDMethod(), getCallOptions(), request);
}
/**
*
* GetBlockHeaderByHeight gets a block header by height.
*
*/
public org.onflow.protobuf.legacy.access.Access.BlockHeaderResponse getBlockHeaderByHeight(org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetBlockHeaderByHeightMethod(), getCallOptions(), request);
}
/**
*
* GetLatestBlock gets the full payload of the latest sealed or unsealed
* block.
*
*/
public org.onflow.protobuf.legacy.access.Access.BlockResponse getLatestBlock(org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetLatestBlockMethod(), getCallOptions(), request);
}
/**
*
* GetBlockByID gets a full block by ID.
*
*/
public org.onflow.protobuf.legacy.access.Access.BlockResponse getBlockByID(org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetBlockByIDMethod(), getCallOptions(), request);
}
/**
*
* GetBlockByHeight gets a full block by height.
*
*/
public org.onflow.protobuf.legacy.access.Access.BlockResponse getBlockByHeight(org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetBlockByHeightMethod(), getCallOptions(), request);
}
/**
*
* GetCollectionByID gets a collection by ID.
*
*/
public org.onflow.protobuf.legacy.access.Access.CollectionResponse getCollectionByID(org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetCollectionByIDMethod(), getCallOptions(), request);
}
/**
*
* SendTransaction submits a transaction to the network.
*
*/
public org.onflow.protobuf.legacy.access.Access.SendTransactionResponse sendTransaction(org.onflow.protobuf.legacy.access.Access.SendTransactionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSendTransactionMethod(), getCallOptions(), request);
}
/**
*
* GetTransaction gets a transaction by ID.
*
*/
public org.onflow.protobuf.legacy.access.Access.TransactionResponse getTransaction(org.onflow.protobuf.legacy.access.Access.GetTransactionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetTransactionMethod(), getCallOptions(), request);
}
/**
*
* GetTransactionResult gets the result of a transaction.
*
*/
public org.onflow.protobuf.legacy.access.Access.TransactionResultResponse getTransactionResult(org.onflow.protobuf.legacy.access.Access.GetTransactionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetTransactionResultMethod(), getCallOptions(), request);
}
/**
*
* GetAccount is an alias for GetAccountAtLatestBlock.
* Warning: this function is deprecated. It behaves identically to
* GetAccountAtLatestBlock and will be removed in a future version.
*
*/
public org.onflow.protobuf.legacy.access.Access.GetAccountResponse getAccount(org.onflow.protobuf.legacy.access.Access.GetAccountRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetAccountMethod(), getCallOptions(), request);
}
/**
*
* GetAccountAtLatestBlock gets an account by address from the latest sealed
* execution state.
*
*/
public org.onflow.protobuf.legacy.access.Access.AccountResponse getAccountAtLatestBlock(org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetAccountAtLatestBlockMethod(), getCallOptions(), request);
}
/**
*
* GetAccountAtBlockHeight gets an account by address at the given block
* height
*
*/
public org.onflow.protobuf.legacy.access.Access.AccountResponse getAccountAtBlockHeight(org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetAccountAtBlockHeightMethod(), getCallOptions(), request);
}
/**
*
* ExecuteScriptAtLatestBlock executes a read-only Cadence script against the
* latest sealed execution state.
*
*/
public org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse executeScriptAtLatestBlock(org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getExecuteScriptAtLatestBlockMethod(), getCallOptions(), request);
}
/**
*
* ExecuteScriptAtBlockID executes a ready-only Cadence script against the
* execution state at the block with the given ID.
*
*/
public org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse executeScriptAtBlockID(org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getExecuteScriptAtBlockIDMethod(), getCallOptions(), request);
}
/**
*
* ExecuteScriptAtBlockHeight executes a ready-only Cadence script against the
* execution state at the given block height.
*
*/
public org.onflow.protobuf.legacy.access.Access.ExecuteScriptResponse executeScriptAtBlockHeight(org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getExecuteScriptAtBlockHeightMethod(), getCallOptions(), request);
}
/**
*
* GetEventsForHeightRange retrieves events emitted within the specified block
* range.
*
*/
public org.onflow.protobuf.legacy.access.Access.EventsResponse getEventsForHeightRange(org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetEventsForHeightRangeMethod(), getCallOptions(), request);
}
/**
*
* GetEventsForBlockIDs retrieves events for the specified block IDs and event
* type.
*
*/
public org.onflow.protobuf.legacy.access.Access.EventsResponse getEventsForBlockIDs(org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetEventsForBlockIDsMethod(), getCallOptions(), request);
}
/**
*
* GetNetworkParameters retrieves the Flow network details
*
*/
public org.onflow.protobuf.legacy.access.Access.GetNetworkParametersResponse getNetworkParameters(org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetNetworkParametersMethod(), getCallOptions(), request);
}
}
/**
*
* AccessAPI is the public-facing API provided by access nodes.
*
*/
public static final class AccessAPIFutureStub extends io.grpc.stub.AbstractFutureStub {
private AccessAPIFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AccessAPIFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AccessAPIFutureStub(channel, callOptions);
}
/**
*
* Ping is used to check if the access node is alive and healthy.
*
*/
public com.google.common.util.concurrent.ListenableFuture ping(
org.onflow.protobuf.legacy.access.Access.PingRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getPingMethod(), getCallOptions()), request);
}
/**
*
* GetLatestBlockHeader gets the latest sealed or unsealed block header.
*
*/
public com.google.common.util.concurrent.ListenableFuture getLatestBlockHeader(
org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetLatestBlockHeaderMethod(), getCallOptions()), request);
}
/**
*
* GetBlockHeaderByID gets a block header by ID.
*
*/
public com.google.common.util.concurrent.ListenableFuture getBlockHeaderByID(
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetBlockHeaderByIDMethod(), getCallOptions()), request);
}
/**
*
* GetBlockHeaderByHeight gets a block header by height.
*
*/
public com.google.common.util.concurrent.ListenableFuture getBlockHeaderByHeight(
org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetBlockHeaderByHeightMethod(), getCallOptions()), request);
}
/**
*
* GetLatestBlock gets the full payload of the latest sealed or unsealed
* block.
*
*/
public com.google.common.util.concurrent.ListenableFuture getLatestBlock(
org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetLatestBlockMethod(), getCallOptions()), request);
}
/**
*
* GetBlockByID gets a full block by ID.
*
*/
public com.google.common.util.concurrent.ListenableFuture getBlockByID(
org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetBlockByIDMethod(), getCallOptions()), request);
}
/**
*
* GetBlockByHeight gets a full block by height.
*
*/
public com.google.common.util.concurrent.ListenableFuture getBlockByHeight(
org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetBlockByHeightMethod(), getCallOptions()), request);
}
/**
*
* GetCollectionByID gets a collection by ID.
*
*/
public com.google.common.util.concurrent.ListenableFuture getCollectionByID(
org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetCollectionByIDMethod(), getCallOptions()), request);
}
/**
*
* SendTransaction submits a transaction to the network.
*
*/
public com.google.common.util.concurrent.ListenableFuture sendTransaction(
org.onflow.protobuf.legacy.access.Access.SendTransactionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSendTransactionMethod(), getCallOptions()), request);
}
/**
*
* GetTransaction gets a transaction by ID.
*
*/
public com.google.common.util.concurrent.ListenableFuture getTransaction(
org.onflow.protobuf.legacy.access.Access.GetTransactionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetTransactionMethod(), getCallOptions()), request);
}
/**
*
* GetTransactionResult gets the result of a transaction.
*
*/
public com.google.common.util.concurrent.ListenableFuture getTransactionResult(
org.onflow.protobuf.legacy.access.Access.GetTransactionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetTransactionResultMethod(), getCallOptions()), request);
}
/**
*
* GetAccount is an alias for GetAccountAtLatestBlock.
* Warning: this function is deprecated. It behaves identically to
* GetAccountAtLatestBlock and will be removed in a future version.
*
*/
public com.google.common.util.concurrent.ListenableFuture getAccount(
org.onflow.protobuf.legacy.access.Access.GetAccountRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetAccountMethod(), getCallOptions()), request);
}
/**
*
* GetAccountAtLatestBlock gets an account by address from the latest sealed
* execution state.
*
*/
public com.google.common.util.concurrent.ListenableFuture getAccountAtLatestBlock(
org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetAccountAtLatestBlockMethod(), getCallOptions()), request);
}
/**
*
* GetAccountAtBlockHeight gets an account by address at the given block
* height
*
*/
public com.google.common.util.concurrent.ListenableFuture getAccountAtBlockHeight(
org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetAccountAtBlockHeightMethod(), getCallOptions()), request);
}
/**
*
* ExecuteScriptAtLatestBlock executes a read-only Cadence script against the
* latest sealed execution state.
*
*/
public com.google.common.util.concurrent.ListenableFuture executeScriptAtLatestBlock(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getExecuteScriptAtLatestBlockMethod(), getCallOptions()), request);
}
/**
*
* ExecuteScriptAtBlockID executes a ready-only Cadence script against the
* execution state at the block with the given ID.
*
*/
public com.google.common.util.concurrent.ListenableFuture executeScriptAtBlockID(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getExecuteScriptAtBlockIDMethod(), getCallOptions()), request);
}
/**
*
* ExecuteScriptAtBlockHeight executes a ready-only Cadence script against the
* execution state at the given block height.
*
*/
public com.google.common.util.concurrent.ListenableFuture executeScriptAtBlockHeight(
org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getExecuteScriptAtBlockHeightMethod(), getCallOptions()), request);
}
/**
*
* GetEventsForHeightRange retrieves events emitted within the specified block
* range.
*
*/
public com.google.common.util.concurrent.ListenableFuture getEventsForHeightRange(
org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetEventsForHeightRangeMethod(), getCallOptions()), request);
}
/**
*
* GetEventsForBlockIDs retrieves events for the specified block IDs and event
* type.
*
*/
public com.google.common.util.concurrent.ListenableFuture getEventsForBlockIDs(
org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetEventsForBlockIDsMethod(), getCallOptions()), request);
}
/**
*
* GetNetworkParameters retrieves the Flow network details
*
*/
public com.google.common.util.concurrent.ListenableFuture getNetworkParameters(
org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetNetworkParametersMethod(), getCallOptions()), request);
}
}
private static final int METHODID_PING = 0;
private static final int METHODID_GET_LATEST_BLOCK_HEADER = 1;
private static final int METHODID_GET_BLOCK_HEADER_BY_ID = 2;
private static final int METHODID_GET_BLOCK_HEADER_BY_HEIGHT = 3;
private static final int METHODID_GET_LATEST_BLOCK = 4;
private static final int METHODID_GET_BLOCK_BY_ID = 5;
private static final int METHODID_GET_BLOCK_BY_HEIGHT = 6;
private static final int METHODID_GET_COLLECTION_BY_ID = 7;
private static final int METHODID_SEND_TRANSACTION = 8;
private static final int METHODID_GET_TRANSACTION = 9;
private static final int METHODID_GET_TRANSACTION_RESULT = 10;
private static final int METHODID_GET_ACCOUNT = 11;
private static final int METHODID_GET_ACCOUNT_AT_LATEST_BLOCK = 12;
private static final int METHODID_GET_ACCOUNT_AT_BLOCK_HEIGHT = 13;
private static final int METHODID_EXECUTE_SCRIPT_AT_LATEST_BLOCK = 14;
private static final int METHODID_EXECUTE_SCRIPT_AT_BLOCK_ID = 15;
private static final int METHODID_EXECUTE_SCRIPT_AT_BLOCK_HEIGHT = 16;
private static final int METHODID_GET_EVENTS_FOR_HEIGHT_RANGE = 17;
private static final int METHODID_GET_EVENTS_FOR_BLOCK_IDS = 18;
private static final int METHODID_GET_NETWORK_PARAMETERS = 19;
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 AccessAPIImplBase serviceImpl;
private final int methodId;
MethodHandlers(AccessAPIImplBase 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_PING:
serviceImpl.ping((org.onflow.protobuf.legacy.access.Access.PingRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_LATEST_BLOCK_HEADER:
serviceImpl.getLatestBlockHeader((org.onflow.protobuf.legacy.access.Access.GetLatestBlockHeaderRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_BLOCK_HEADER_BY_ID:
serviceImpl.getBlockHeaderByID((org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByIDRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_BLOCK_HEADER_BY_HEIGHT:
serviceImpl.getBlockHeaderByHeight((org.onflow.protobuf.legacy.access.Access.GetBlockHeaderByHeightRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_LATEST_BLOCK:
serviceImpl.getLatestBlock((org.onflow.protobuf.legacy.access.Access.GetLatestBlockRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_BLOCK_BY_ID:
serviceImpl.getBlockByID((org.onflow.protobuf.legacy.access.Access.GetBlockByIDRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_BLOCK_BY_HEIGHT:
serviceImpl.getBlockByHeight((org.onflow.protobuf.legacy.access.Access.GetBlockByHeightRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_COLLECTION_BY_ID:
serviceImpl.getCollectionByID((org.onflow.protobuf.legacy.access.Access.GetCollectionByIDRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SEND_TRANSACTION:
serviceImpl.sendTransaction((org.onflow.protobuf.legacy.access.Access.SendTransactionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_TRANSACTION:
serviceImpl.getTransaction((org.onflow.protobuf.legacy.access.Access.GetTransactionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_TRANSACTION_RESULT:
serviceImpl.getTransactionResult((org.onflow.protobuf.legacy.access.Access.GetTransactionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_ACCOUNT:
serviceImpl.getAccount((org.onflow.protobuf.legacy.access.Access.GetAccountRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_ACCOUNT_AT_LATEST_BLOCK:
serviceImpl.getAccountAtLatestBlock((org.onflow.protobuf.legacy.access.Access.GetAccountAtLatestBlockRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_ACCOUNT_AT_BLOCK_HEIGHT:
serviceImpl.getAccountAtBlockHeight((org.onflow.protobuf.legacy.access.Access.GetAccountAtBlockHeightRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_EXECUTE_SCRIPT_AT_LATEST_BLOCK:
serviceImpl.executeScriptAtLatestBlock((org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtLatestBlockRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_EXECUTE_SCRIPT_AT_BLOCK_ID:
serviceImpl.executeScriptAtBlockID((org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockIDRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_EXECUTE_SCRIPT_AT_BLOCK_HEIGHT:
serviceImpl.executeScriptAtBlockHeight((org.onflow.protobuf.legacy.access.Access.ExecuteScriptAtBlockHeightRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_EVENTS_FOR_HEIGHT_RANGE:
serviceImpl.getEventsForHeightRange((org.onflow.protobuf.legacy.access.Access.GetEventsForHeightRangeRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_EVENTS_FOR_BLOCK_IDS:
serviceImpl.getEventsForBlockIDs((org.onflow.protobuf.legacy.access.Access.GetEventsForBlockIDsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_NETWORK_PARAMETERS:
serviceImpl.getNetworkParameters((org.onflow.protobuf.legacy.access.Access.GetNetworkParametersRequest) 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 AccessAPIBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
AccessAPIBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return org.onflow.protobuf.legacy.access.Access.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("AccessAPI");
}
}
private static final class AccessAPIFileDescriptorSupplier
extends AccessAPIBaseDescriptorSupplier {
AccessAPIFileDescriptorSupplier() {}
}
private static final class AccessAPIMethodDescriptorSupplier
extends AccessAPIBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
AccessAPIMethodDescriptorSupplier(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 (AccessAPIGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new AccessAPIFileDescriptorSupplier())
.addMethod(getPingMethod())
.addMethod(getGetLatestBlockHeaderMethod())
.addMethod(getGetBlockHeaderByIDMethod())
.addMethod(getGetBlockHeaderByHeightMethod())
.addMethod(getGetLatestBlockMethod())
.addMethod(getGetBlockByIDMethod())
.addMethod(getGetBlockByHeightMethod())
.addMethod(getGetCollectionByIDMethod())
.addMethod(getSendTransactionMethod())
.addMethod(getGetTransactionMethod())
.addMethod(getGetTransactionResultMethod())
.addMethod(getGetAccountMethod())
.addMethod(getGetAccountAtLatestBlockMethod())
.addMethod(getGetAccountAtBlockHeightMethod())
.addMethod(getExecuteScriptAtLatestBlockMethod())
.addMethod(getExecuteScriptAtBlockIDMethod())
.addMethod(getExecuteScriptAtBlockHeightMethod())
.addMethod(getGetEventsForHeightRangeMethod())
.addMethod(getGetEventsForBlockIDsMethod())
.addMethod(getGetNetworkParametersMethod())
.build();
}
}
}
return result;
}
}