
cosmos.bank.v1beta1.QueryGrpc Maven / Gradle / Ivy
package cosmos.bank.v1beta1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* Query defines the gRPC querier service.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.40.1)",
comments = "Source: cosmos/bank/v1beta1/query.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class QueryGrpc {
private QueryGrpc() {}
public static final String SERVICE_NAME = "cosmos.bank.v1beta1.Query";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getBalanceMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Balance",
requestType = cosmos.bank.v1beta1.QueryOuterClass.QueryBalanceRequest.class,
responseType = cosmos.bank.v1beta1.QueryOuterClass.QueryBalanceResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getBalanceMethod() {
io.grpc.MethodDescriptor getBalanceMethod;
if ((getBalanceMethod = QueryGrpc.getBalanceMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getBalanceMethod = QueryGrpc.getBalanceMethod) == null) {
QueryGrpc.getBalanceMethod = getBalanceMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Balance"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.bank.v1beta1.QueryOuterClass.QueryBalanceRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.bank.v1beta1.QueryOuterClass.QueryBalanceResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("Balance"))
.build();
}
}
}
return getBalanceMethod;
}
private static volatile io.grpc.MethodDescriptor getAllBalancesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "AllBalances",
requestType = cosmos.bank.v1beta1.QueryOuterClass.QueryAllBalancesRequest.class,
responseType = cosmos.bank.v1beta1.QueryOuterClass.QueryAllBalancesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAllBalancesMethod() {
io.grpc.MethodDescriptor getAllBalancesMethod;
if ((getAllBalancesMethod = QueryGrpc.getAllBalancesMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getAllBalancesMethod = QueryGrpc.getAllBalancesMethod) == null) {
QueryGrpc.getAllBalancesMethod = getAllBalancesMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "AllBalances"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.bank.v1beta1.QueryOuterClass.QueryAllBalancesRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.bank.v1beta1.QueryOuterClass.QueryAllBalancesResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("AllBalances"))
.build();
}
}
}
return getAllBalancesMethod;
}
private static volatile io.grpc.MethodDescriptor getTotalSupplyMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "TotalSupply",
requestType = cosmos.bank.v1beta1.QueryOuterClass.QueryTotalSupplyRequest.class,
responseType = cosmos.bank.v1beta1.QueryOuterClass.QueryTotalSupplyResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getTotalSupplyMethod() {
io.grpc.MethodDescriptor getTotalSupplyMethod;
if ((getTotalSupplyMethod = QueryGrpc.getTotalSupplyMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getTotalSupplyMethod = QueryGrpc.getTotalSupplyMethod) == null) {
QueryGrpc.getTotalSupplyMethod = getTotalSupplyMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "TotalSupply"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.bank.v1beta1.QueryOuterClass.QueryTotalSupplyRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.bank.v1beta1.QueryOuterClass.QueryTotalSupplyResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("TotalSupply"))
.build();
}
}
}
return getTotalSupplyMethod;
}
private static volatile io.grpc.MethodDescriptor getSupplyOfMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SupplyOf",
requestType = cosmos.bank.v1beta1.QueryOuterClass.QuerySupplyOfRequest.class,
responseType = cosmos.bank.v1beta1.QueryOuterClass.QuerySupplyOfResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSupplyOfMethod() {
io.grpc.MethodDescriptor getSupplyOfMethod;
if ((getSupplyOfMethod = QueryGrpc.getSupplyOfMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getSupplyOfMethod = QueryGrpc.getSupplyOfMethod) == null) {
QueryGrpc.getSupplyOfMethod = getSupplyOfMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SupplyOf"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.bank.v1beta1.QueryOuterClass.QuerySupplyOfRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.bank.v1beta1.QueryOuterClass.QuerySupplyOfResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("SupplyOf"))
.build();
}
}
}
return getSupplyOfMethod;
}
private static volatile io.grpc.MethodDescriptor getParamsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Params",
requestType = cosmos.bank.v1beta1.QueryOuterClass.QueryParamsRequest.class,
responseType = cosmos.bank.v1beta1.QueryOuterClass.QueryParamsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getParamsMethod() {
io.grpc.MethodDescriptor getParamsMethod;
if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getParamsMethod = QueryGrpc.getParamsMethod) == null) {
QueryGrpc.getParamsMethod = getParamsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Params"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.bank.v1beta1.QueryOuterClass.QueryParamsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.bank.v1beta1.QueryOuterClass.QueryParamsResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("Params"))
.build();
}
}
}
return getParamsMethod;
}
private static volatile io.grpc.MethodDescriptor getDenomMetadataMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DenomMetadata",
requestType = cosmos.bank.v1beta1.QueryOuterClass.QueryDenomMetadataRequest.class,
responseType = cosmos.bank.v1beta1.QueryOuterClass.QueryDenomMetadataResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDenomMetadataMethod() {
io.grpc.MethodDescriptor getDenomMetadataMethod;
if ((getDenomMetadataMethod = QueryGrpc.getDenomMetadataMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getDenomMetadataMethod = QueryGrpc.getDenomMetadataMethod) == null) {
QueryGrpc.getDenomMetadataMethod = getDenomMetadataMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DenomMetadata"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.bank.v1beta1.QueryOuterClass.QueryDenomMetadataRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.bank.v1beta1.QueryOuterClass.QueryDenomMetadataResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("DenomMetadata"))
.build();
}
}
}
return getDenomMetadataMethod;
}
private static volatile io.grpc.MethodDescriptor getDenomsMetadataMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DenomsMetadata",
requestType = cosmos.bank.v1beta1.QueryOuterClass.QueryDenomsMetadataRequest.class,
responseType = cosmos.bank.v1beta1.QueryOuterClass.QueryDenomsMetadataResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDenomsMetadataMethod() {
io.grpc.MethodDescriptor getDenomsMetadataMethod;
if ((getDenomsMetadataMethod = QueryGrpc.getDenomsMetadataMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getDenomsMetadataMethod = QueryGrpc.getDenomsMetadataMethod) == null) {
QueryGrpc.getDenomsMetadataMethod = getDenomsMetadataMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DenomsMetadata"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.bank.v1beta1.QueryOuterClass.QueryDenomsMetadataRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.bank.v1beta1.QueryOuterClass.QueryDenomsMetadataResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("DenomsMetadata"))
.build();
}
}
}
return getDenomsMetadataMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static QueryStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public QueryStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QueryStub(channel, callOptions);
}
};
return QueryStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static QueryBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public QueryBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QueryBlockingStub(channel, callOptions);
}
};
return QueryBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static QueryFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public QueryFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QueryFutureStub(channel, callOptions);
}
};
return QueryFutureStub.newStub(factory, channel);
}
/**
*
* Query defines the gRPC querier service.
*
*/
public static abstract class QueryImplBase implements io.grpc.BindableService {
/**
*
* Balance queries the balance of a single coin for a single account.
*
*/
public void balance(cosmos.bank.v1beta1.QueryOuterClass.QueryBalanceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBalanceMethod(), responseObserver);
}
/**
*
* AllBalances queries the balance of all coins for a single account.
*
*/
public void allBalances(cosmos.bank.v1beta1.QueryOuterClass.QueryAllBalancesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAllBalancesMethod(), responseObserver);
}
/**
*
* TotalSupply queries the total supply of all coins.
*
*/
public void totalSupply(cosmos.bank.v1beta1.QueryOuterClass.QueryTotalSupplyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTotalSupplyMethod(), responseObserver);
}
/**
*
* SupplyOf queries the supply of a single coin.
*
*/
public void supplyOf(cosmos.bank.v1beta1.QueryOuterClass.QuerySupplyOfRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSupplyOfMethod(), responseObserver);
}
/**
*
* Params queries the parameters of x/bank module.
*
*/
public void params(cosmos.bank.v1beta1.QueryOuterClass.QueryParamsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getParamsMethod(), responseObserver);
}
/**
*
* DenomsMetadata queries the client metadata of a given coin denomination.
*
*/
public void denomMetadata(cosmos.bank.v1beta1.QueryOuterClass.QueryDenomMetadataRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDenomMetadataMethod(), responseObserver);
}
/**
*
* DenomsMetadata queries the client metadata for all registered coin denominations.
*
*/
public void denomsMetadata(cosmos.bank.v1beta1.QueryOuterClass.QueryDenomsMetadataRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDenomsMetadataMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getBalanceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.bank.v1beta1.QueryOuterClass.QueryBalanceRequest,
cosmos.bank.v1beta1.QueryOuterClass.QueryBalanceResponse>(
this, METHODID_BALANCE)))
.addMethod(
getAllBalancesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.bank.v1beta1.QueryOuterClass.QueryAllBalancesRequest,
cosmos.bank.v1beta1.QueryOuterClass.QueryAllBalancesResponse>(
this, METHODID_ALL_BALANCES)))
.addMethod(
getTotalSupplyMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.bank.v1beta1.QueryOuterClass.QueryTotalSupplyRequest,
cosmos.bank.v1beta1.QueryOuterClass.QueryTotalSupplyResponse>(
this, METHODID_TOTAL_SUPPLY)))
.addMethod(
getSupplyOfMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.bank.v1beta1.QueryOuterClass.QuerySupplyOfRequest,
cosmos.bank.v1beta1.QueryOuterClass.QuerySupplyOfResponse>(
this, METHODID_SUPPLY_OF)))
.addMethod(
getParamsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.bank.v1beta1.QueryOuterClass.QueryParamsRequest,
cosmos.bank.v1beta1.QueryOuterClass.QueryParamsResponse>(
this, METHODID_PARAMS)))
.addMethod(
getDenomMetadataMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.bank.v1beta1.QueryOuterClass.QueryDenomMetadataRequest,
cosmos.bank.v1beta1.QueryOuterClass.QueryDenomMetadataResponse>(
this, METHODID_DENOM_METADATA)))
.addMethod(
getDenomsMetadataMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.bank.v1beta1.QueryOuterClass.QueryDenomsMetadataRequest,
cosmos.bank.v1beta1.QueryOuterClass.QueryDenomsMetadataResponse>(
this, METHODID_DENOMS_METADATA)))
.build();
}
}
/**
*
* Query defines the gRPC querier service.
*
*/
public static final class QueryStub extends io.grpc.stub.AbstractAsyncStub {
private QueryStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected QueryStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QueryStub(channel, callOptions);
}
/**
*
* Balance queries the balance of a single coin for a single account.
*
*/
public void balance(cosmos.bank.v1beta1.QueryOuterClass.QueryBalanceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getBalanceMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* AllBalances queries the balance of all coins for a single account.
*
*/
public void allBalances(cosmos.bank.v1beta1.QueryOuterClass.QueryAllBalancesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getAllBalancesMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* TotalSupply queries the total supply of all coins.
*
*/
public void totalSupply(cosmos.bank.v1beta1.QueryOuterClass.QueryTotalSupplyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getTotalSupplyMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* SupplyOf queries the supply of a single coin.
*
*/
public void supplyOf(cosmos.bank.v1beta1.QueryOuterClass.QuerySupplyOfRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSupplyOfMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Params queries the parameters of x/bank module.
*
*/
public void params(cosmos.bank.v1beta1.QueryOuterClass.QueryParamsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getParamsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* DenomsMetadata queries the client metadata of a given coin denomination.
*
*/
public void denomMetadata(cosmos.bank.v1beta1.QueryOuterClass.QueryDenomMetadataRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDenomMetadataMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* DenomsMetadata queries the client metadata for all registered coin denominations.
*
*/
public void denomsMetadata(cosmos.bank.v1beta1.QueryOuterClass.QueryDenomsMetadataRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDenomsMetadataMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* Query defines the gRPC querier service.
*
*/
public static final class QueryBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private QueryBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected QueryBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QueryBlockingStub(channel, callOptions);
}
/**
*
* Balance queries the balance of a single coin for a single account.
*
*/
public cosmos.bank.v1beta1.QueryOuterClass.QueryBalanceResponse balance(cosmos.bank.v1beta1.QueryOuterClass.QueryBalanceRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getBalanceMethod(), getCallOptions(), request);
}
/**
*
* AllBalances queries the balance of all coins for a single account.
*
*/
public cosmos.bank.v1beta1.QueryOuterClass.QueryAllBalancesResponse allBalances(cosmos.bank.v1beta1.QueryOuterClass.QueryAllBalancesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAllBalancesMethod(), getCallOptions(), request);
}
/**
*
* TotalSupply queries the total supply of all coins.
*
*/
public cosmos.bank.v1beta1.QueryOuterClass.QueryTotalSupplyResponse totalSupply(cosmos.bank.v1beta1.QueryOuterClass.QueryTotalSupplyRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getTotalSupplyMethod(), getCallOptions(), request);
}
/**
*
* SupplyOf queries the supply of a single coin.
*
*/
public cosmos.bank.v1beta1.QueryOuterClass.QuerySupplyOfResponse supplyOf(cosmos.bank.v1beta1.QueryOuterClass.QuerySupplyOfRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSupplyOfMethod(), getCallOptions(), request);
}
/**
*
* Params queries the parameters of x/bank module.
*
*/
public cosmos.bank.v1beta1.QueryOuterClass.QueryParamsResponse params(cosmos.bank.v1beta1.QueryOuterClass.QueryParamsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getParamsMethod(), getCallOptions(), request);
}
/**
*
* DenomsMetadata queries the client metadata of a given coin denomination.
*
*/
public cosmos.bank.v1beta1.QueryOuterClass.QueryDenomMetadataResponse denomMetadata(cosmos.bank.v1beta1.QueryOuterClass.QueryDenomMetadataRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDenomMetadataMethod(), getCallOptions(), request);
}
/**
*
* DenomsMetadata queries the client metadata for all registered coin denominations.
*
*/
public cosmos.bank.v1beta1.QueryOuterClass.QueryDenomsMetadataResponse denomsMetadata(cosmos.bank.v1beta1.QueryOuterClass.QueryDenomsMetadataRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDenomsMetadataMethod(), getCallOptions(), request);
}
}
/**
*
* Query defines the gRPC querier service.
*
*/
public static final class QueryFutureStub extends io.grpc.stub.AbstractFutureStub {
private QueryFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected QueryFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QueryFutureStub(channel, callOptions);
}
/**
*
* Balance queries the balance of a single coin for a single account.
*
*/
public com.google.common.util.concurrent.ListenableFuture balance(
cosmos.bank.v1beta1.QueryOuterClass.QueryBalanceRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getBalanceMethod(), getCallOptions()), request);
}
/**
*
* AllBalances queries the balance of all coins for a single account.
*
*/
public com.google.common.util.concurrent.ListenableFuture allBalances(
cosmos.bank.v1beta1.QueryOuterClass.QueryAllBalancesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getAllBalancesMethod(), getCallOptions()), request);
}
/**
*
* TotalSupply queries the total supply of all coins.
*
*/
public com.google.common.util.concurrent.ListenableFuture totalSupply(
cosmos.bank.v1beta1.QueryOuterClass.QueryTotalSupplyRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getTotalSupplyMethod(), getCallOptions()), request);
}
/**
*
* SupplyOf queries the supply of a single coin.
*
*/
public com.google.common.util.concurrent.ListenableFuture supplyOf(
cosmos.bank.v1beta1.QueryOuterClass.QuerySupplyOfRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSupplyOfMethod(), getCallOptions()), request);
}
/**
*
* Params queries the parameters of x/bank module.
*
*/
public com.google.common.util.concurrent.ListenableFuture params(
cosmos.bank.v1beta1.QueryOuterClass.QueryParamsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getParamsMethod(), getCallOptions()), request);
}
/**
*
* DenomsMetadata queries the client metadata of a given coin denomination.
*
*/
public com.google.common.util.concurrent.ListenableFuture denomMetadata(
cosmos.bank.v1beta1.QueryOuterClass.QueryDenomMetadataRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDenomMetadataMethod(), getCallOptions()), request);
}
/**
*
* DenomsMetadata queries the client metadata for all registered coin denominations.
*
*/
public com.google.common.util.concurrent.ListenableFuture denomsMetadata(
cosmos.bank.v1beta1.QueryOuterClass.QueryDenomsMetadataRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDenomsMetadataMethod(), getCallOptions()), request);
}
}
private static final int METHODID_BALANCE = 0;
private static final int METHODID_ALL_BALANCES = 1;
private static final int METHODID_TOTAL_SUPPLY = 2;
private static final int METHODID_SUPPLY_OF = 3;
private static final int METHODID_PARAMS = 4;
private static final int METHODID_DENOM_METADATA = 5;
private static final int METHODID_DENOMS_METADATA = 6;
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 QueryImplBase serviceImpl;
private final int methodId;
MethodHandlers(QueryImplBase 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_BALANCE:
serviceImpl.balance((cosmos.bank.v1beta1.QueryOuterClass.QueryBalanceRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ALL_BALANCES:
serviceImpl.allBalances((cosmos.bank.v1beta1.QueryOuterClass.QueryAllBalancesRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_TOTAL_SUPPLY:
serviceImpl.totalSupply((cosmos.bank.v1beta1.QueryOuterClass.QueryTotalSupplyRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SUPPLY_OF:
serviceImpl.supplyOf((cosmos.bank.v1beta1.QueryOuterClass.QuerySupplyOfRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PARAMS:
serviceImpl.params((cosmos.bank.v1beta1.QueryOuterClass.QueryParamsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DENOM_METADATA:
serviceImpl.denomMetadata((cosmos.bank.v1beta1.QueryOuterClass.QueryDenomMetadataRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DENOMS_METADATA:
serviceImpl.denomsMetadata((cosmos.bank.v1beta1.QueryOuterClass.QueryDenomsMetadataRequest) 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 QueryBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
QueryBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return cosmos.bank.v1beta1.QueryOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("Query");
}
}
private static final class QueryFileDescriptorSupplier
extends QueryBaseDescriptorSupplier {
QueryFileDescriptorSupplier() {}
}
private static final class QueryMethodDescriptorSupplier
extends QueryBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
QueryMethodDescriptorSupplier(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 (QueryGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new QueryFileDescriptorSupplier())
.addMethod(getBalanceMethod())
.addMethod(getAllBalancesMethod())
.addMethod(getTotalSupplyMethod())
.addMethod(getSupplyOfMethod())
.addMethod(getParamsMethod())
.addMethod(getDenomMetadataMethod())
.addMethod(getDenomsMetadataMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy