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

jvmMain.terra.treasury.v1beta1.QueryGrpc Maven / Gradle / Ivy

There is a newer version: 3.1.6-4
Show newest version
package terra.treasury.v1beta1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Query defines the gRPC querier service.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.63.0)", comments = "Source: terra/treasury/v1beta1/query.proto") @io.grpc.stub.annotations.GrpcGenerated public final class QueryGrpc { private QueryGrpc() {} public static final java.lang.String SERVICE_NAME = "terra.treasury.v1beta1.Query"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getTaxRateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TaxRate", requestType = terra.treasury.v1beta1.QueryOuterClass.QueryTaxRateRequest.class, responseType = terra.treasury.v1beta1.QueryOuterClass.QueryTaxRateResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getTaxRateMethod() { io.grpc.MethodDescriptor getTaxRateMethod; if ((getTaxRateMethod = QueryGrpc.getTaxRateMethod) == null) { synchronized (QueryGrpc.class) { if ((getTaxRateMethod = QueryGrpc.getTaxRateMethod) == null) { QueryGrpc.getTaxRateMethod = getTaxRateMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TaxRate")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QueryTaxRateRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QueryTaxRateResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("TaxRate")) .build(); } } } return getTaxRateMethod; } private static volatile io.grpc.MethodDescriptor getTaxCapMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TaxCap", requestType = terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapRequest.class, responseType = terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getTaxCapMethod() { io.grpc.MethodDescriptor getTaxCapMethod; if ((getTaxCapMethod = QueryGrpc.getTaxCapMethod) == null) { synchronized (QueryGrpc.class) { if ((getTaxCapMethod = QueryGrpc.getTaxCapMethod) == null) { QueryGrpc.getTaxCapMethod = getTaxCapMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TaxCap")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("TaxCap")) .build(); } } } return getTaxCapMethod; } private static volatile io.grpc.MethodDescriptor getTaxCapsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TaxCaps", requestType = terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapsRequest.class, responseType = terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getTaxCapsMethod() { io.grpc.MethodDescriptor getTaxCapsMethod; if ((getTaxCapsMethod = QueryGrpc.getTaxCapsMethod) == null) { synchronized (QueryGrpc.class) { if ((getTaxCapsMethod = QueryGrpc.getTaxCapsMethod) == null) { QueryGrpc.getTaxCapsMethod = getTaxCapsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TaxCaps")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapsResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("TaxCaps")) .build(); } } } return getTaxCapsMethod; } private static volatile io.grpc.MethodDescriptor getRewardWeightMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RewardWeight", requestType = terra.treasury.v1beta1.QueryOuterClass.QueryRewardWeightRequest.class, responseType = terra.treasury.v1beta1.QueryOuterClass.QueryRewardWeightResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRewardWeightMethod() { io.grpc.MethodDescriptor getRewardWeightMethod; if ((getRewardWeightMethod = QueryGrpc.getRewardWeightMethod) == null) { synchronized (QueryGrpc.class) { if ((getRewardWeightMethod = QueryGrpc.getRewardWeightMethod) == null) { QueryGrpc.getRewardWeightMethod = getRewardWeightMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RewardWeight")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QueryRewardWeightRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QueryRewardWeightResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("RewardWeight")) .build(); } } } return getRewardWeightMethod; } private static volatile io.grpc.MethodDescriptor getSeigniorageProceedsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SeigniorageProceeds", requestType = terra.treasury.v1beta1.QueryOuterClass.QuerySeigniorageProceedsRequest.class, responseType = terra.treasury.v1beta1.QueryOuterClass.QuerySeigniorageProceedsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSeigniorageProceedsMethod() { io.grpc.MethodDescriptor getSeigniorageProceedsMethod; if ((getSeigniorageProceedsMethod = QueryGrpc.getSeigniorageProceedsMethod) == null) { synchronized (QueryGrpc.class) { if ((getSeigniorageProceedsMethod = QueryGrpc.getSeigniorageProceedsMethod) == null) { QueryGrpc.getSeigniorageProceedsMethod = getSeigniorageProceedsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SeigniorageProceeds")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QuerySeigniorageProceedsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QuerySeigniorageProceedsResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("SeigniorageProceeds")) .build(); } } } return getSeigniorageProceedsMethod; } private static volatile io.grpc.MethodDescriptor getTaxProceedsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TaxProceeds", requestType = terra.treasury.v1beta1.QueryOuterClass.QueryTaxProceedsRequest.class, responseType = terra.treasury.v1beta1.QueryOuterClass.QueryTaxProceedsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getTaxProceedsMethod() { io.grpc.MethodDescriptor getTaxProceedsMethod; if ((getTaxProceedsMethod = QueryGrpc.getTaxProceedsMethod) == null) { synchronized (QueryGrpc.class) { if ((getTaxProceedsMethod = QueryGrpc.getTaxProceedsMethod) == null) { QueryGrpc.getTaxProceedsMethod = getTaxProceedsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TaxProceeds")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QueryTaxProceedsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QueryTaxProceedsResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("TaxProceeds")) .build(); } } } return getTaxProceedsMethod; } private static volatile io.grpc.MethodDescriptor getIndicatorsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Indicators", requestType = terra.treasury.v1beta1.QueryOuterClass.QueryIndicatorsRequest.class, responseType = terra.treasury.v1beta1.QueryOuterClass.QueryIndicatorsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getIndicatorsMethod() { io.grpc.MethodDescriptor getIndicatorsMethod; if ((getIndicatorsMethod = QueryGrpc.getIndicatorsMethod) == null) { synchronized (QueryGrpc.class) { if ((getIndicatorsMethod = QueryGrpc.getIndicatorsMethod) == null) { QueryGrpc.getIndicatorsMethod = getIndicatorsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Indicators")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QueryIndicatorsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QueryIndicatorsResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Indicators")) .build(); } } } return getIndicatorsMethod; } private static volatile io.grpc.MethodDescriptor getBurnTaxExemptionListMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BurnTaxExemptionList", requestType = terra.treasury.v1beta1.QueryOuterClass.QueryBurnTaxExemptionListRequest.class, responseType = terra.treasury.v1beta1.QueryOuterClass.QueryBurnTaxExemptionListResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getBurnTaxExemptionListMethod() { io.grpc.MethodDescriptor getBurnTaxExemptionListMethod; if ((getBurnTaxExemptionListMethod = QueryGrpc.getBurnTaxExemptionListMethod) == null) { synchronized (QueryGrpc.class) { if ((getBurnTaxExemptionListMethod = QueryGrpc.getBurnTaxExemptionListMethod) == null) { QueryGrpc.getBurnTaxExemptionListMethod = getBurnTaxExemptionListMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BurnTaxExemptionList")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QueryBurnTaxExemptionListRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QueryBurnTaxExemptionListResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("BurnTaxExemptionList")) .build(); } } } return getBurnTaxExemptionListMethod; } private static volatile io.grpc.MethodDescriptor getParamsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Params", requestType = terra.treasury.v1beta1.QueryOuterClass.QueryParamsRequest.class, responseType = terra.treasury.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( terra.treasury.v1beta1.QueryOuterClass.QueryParamsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( terra.treasury.v1beta1.QueryOuterClass.QueryParamsResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Params")) .build(); } } } return getParamsMethod; } /** * 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 interface AsyncService { /** *
     * TaxRate return the current tax rate
     * 
*/ default void taxRate(terra.treasury.v1beta1.QueryOuterClass.QueryTaxRateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTaxRateMethod(), responseObserver); } /** *
     * TaxCap returns the tax cap of a denom
     * 
*/ default void taxCap(terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTaxCapMethod(), responseObserver); } /** *
     * TaxCaps returns the all tax caps
     * 
*/ default void taxCaps(terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTaxCapsMethod(), responseObserver); } /** *
     * RewardWeight return the current reward weight
     * 
*/ default void rewardWeight(terra.treasury.v1beta1.QueryOuterClass.QueryRewardWeightRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRewardWeightMethod(), responseObserver); } /** *
     * SeigniorageProceeds return the current seigniorage proceeds
     * 
*/ default void seigniorageProceeds(terra.treasury.v1beta1.QueryOuterClass.QuerySeigniorageProceedsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSeigniorageProceedsMethod(), responseObserver); } /** *
     * TaxProceeds return the current tax proceeds
     * 
*/ default void taxProceeds(terra.treasury.v1beta1.QueryOuterClass.QueryTaxProceedsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTaxProceedsMethod(), responseObserver); } /** *
     * Indicators return the current trl informations
     * 
*/ default void indicators(terra.treasury.v1beta1.QueryOuterClass.QueryIndicatorsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getIndicatorsMethod(), responseObserver); } /** *
     * BurnTaxExemptionList returns all registered burn tax exemption addresses
     * 
*/ default void burnTaxExemptionList(terra.treasury.v1beta1.QueryOuterClass.QueryBurnTaxExemptionListRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBurnTaxExemptionListMethod(), responseObserver); } /** *
     * Params queries all parameters.
     * 
*/ default void params(terra.treasury.v1beta1.QueryOuterClass.QueryParamsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getParamsMethod(), responseObserver); } } /** * Base class for the server implementation of the service Query. *
   * Query defines the gRPC querier service.
   * 
*/ public static abstract class QueryImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return QueryGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Query. *
   * 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); } /** *
     * TaxRate return the current tax rate
     * 
*/ public void taxRate(terra.treasury.v1beta1.QueryOuterClass.QueryTaxRateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTaxRateMethod(), getCallOptions()), request, responseObserver); } /** *
     * TaxCap returns the tax cap of a denom
     * 
*/ public void taxCap(terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTaxCapMethod(), getCallOptions()), request, responseObserver); } /** *
     * TaxCaps returns the all tax caps
     * 
*/ public void taxCaps(terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTaxCapsMethod(), getCallOptions()), request, responseObserver); } /** *
     * RewardWeight return the current reward weight
     * 
*/ public void rewardWeight(terra.treasury.v1beta1.QueryOuterClass.QueryRewardWeightRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRewardWeightMethod(), getCallOptions()), request, responseObserver); } /** *
     * SeigniorageProceeds return the current seigniorage proceeds
     * 
*/ public void seigniorageProceeds(terra.treasury.v1beta1.QueryOuterClass.QuerySeigniorageProceedsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSeigniorageProceedsMethod(), getCallOptions()), request, responseObserver); } /** *
     * TaxProceeds return the current tax proceeds
     * 
*/ public void taxProceeds(terra.treasury.v1beta1.QueryOuterClass.QueryTaxProceedsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTaxProceedsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Indicators return the current trl informations
     * 
*/ public void indicators(terra.treasury.v1beta1.QueryOuterClass.QueryIndicatorsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getIndicatorsMethod(), getCallOptions()), request, responseObserver); } /** *
     * BurnTaxExemptionList returns all registered burn tax exemption addresses
     * 
*/ public void burnTaxExemptionList(terra.treasury.v1beta1.QueryOuterClass.QueryBurnTaxExemptionListRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBurnTaxExemptionListMethod(), getCallOptions()), request, responseObserver); } /** *
     * Params queries all parameters.
     * 
*/ public void params(terra.treasury.v1beta1.QueryOuterClass.QueryParamsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getParamsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Query. *
   * 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); } /** *
     * TaxRate return the current tax rate
     * 
*/ public terra.treasury.v1beta1.QueryOuterClass.QueryTaxRateResponse taxRate(terra.treasury.v1beta1.QueryOuterClass.QueryTaxRateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTaxRateMethod(), getCallOptions(), request); } /** *
     * TaxCap returns the tax cap of a denom
     * 
*/ public terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapResponse taxCap(terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTaxCapMethod(), getCallOptions(), request); } /** *
     * TaxCaps returns the all tax caps
     * 
*/ public terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapsResponse taxCaps(terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTaxCapsMethod(), getCallOptions(), request); } /** *
     * RewardWeight return the current reward weight
     * 
*/ public terra.treasury.v1beta1.QueryOuterClass.QueryRewardWeightResponse rewardWeight(terra.treasury.v1beta1.QueryOuterClass.QueryRewardWeightRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRewardWeightMethod(), getCallOptions(), request); } /** *
     * SeigniorageProceeds return the current seigniorage proceeds
     * 
*/ public terra.treasury.v1beta1.QueryOuterClass.QuerySeigniorageProceedsResponse seigniorageProceeds(terra.treasury.v1beta1.QueryOuterClass.QuerySeigniorageProceedsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSeigniorageProceedsMethod(), getCallOptions(), request); } /** *
     * TaxProceeds return the current tax proceeds
     * 
*/ public terra.treasury.v1beta1.QueryOuterClass.QueryTaxProceedsResponse taxProceeds(terra.treasury.v1beta1.QueryOuterClass.QueryTaxProceedsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTaxProceedsMethod(), getCallOptions(), request); } /** *
     * Indicators return the current trl informations
     * 
*/ public terra.treasury.v1beta1.QueryOuterClass.QueryIndicatorsResponse indicators(terra.treasury.v1beta1.QueryOuterClass.QueryIndicatorsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getIndicatorsMethod(), getCallOptions(), request); } /** *
     * BurnTaxExemptionList returns all registered burn tax exemption addresses
     * 
*/ public terra.treasury.v1beta1.QueryOuterClass.QueryBurnTaxExemptionListResponse burnTaxExemptionList(terra.treasury.v1beta1.QueryOuterClass.QueryBurnTaxExemptionListRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBurnTaxExemptionListMethod(), getCallOptions(), request); } /** *
     * Params queries all parameters.
     * 
*/ public terra.treasury.v1beta1.QueryOuterClass.QueryParamsResponse params(terra.treasury.v1beta1.QueryOuterClass.QueryParamsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getParamsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Query. *
   * 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); } /** *
     * TaxRate return the current tax rate
     * 
*/ public com.google.common.util.concurrent.ListenableFuture taxRate( terra.treasury.v1beta1.QueryOuterClass.QueryTaxRateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTaxRateMethod(), getCallOptions()), request); } /** *
     * TaxCap returns the tax cap of a denom
     * 
*/ public com.google.common.util.concurrent.ListenableFuture taxCap( terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTaxCapMethod(), getCallOptions()), request); } /** *
     * TaxCaps returns the all tax caps
     * 
*/ public com.google.common.util.concurrent.ListenableFuture taxCaps( terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTaxCapsMethod(), getCallOptions()), request); } /** *
     * RewardWeight return the current reward weight
     * 
*/ public com.google.common.util.concurrent.ListenableFuture rewardWeight( terra.treasury.v1beta1.QueryOuterClass.QueryRewardWeightRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRewardWeightMethod(), getCallOptions()), request); } /** *
     * SeigniorageProceeds return the current seigniorage proceeds
     * 
*/ public com.google.common.util.concurrent.ListenableFuture seigniorageProceeds( terra.treasury.v1beta1.QueryOuterClass.QuerySeigniorageProceedsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSeigniorageProceedsMethod(), getCallOptions()), request); } /** *
     * TaxProceeds return the current tax proceeds
     * 
*/ public com.google.common.util.concurrent.ListenableFuture taxProceeds( terra.treasury.v1beta1.QueryOuterClass.QueryTaxProceedsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTaxProceedsMethod(), getCallOptions()), request); } /** *
     * Indicators return the current trl informations
     * 
*/ public com.google.common.util.concurrent.ListenableFuture indicators( terra.treasury.v1beta1.QueryOuterClass.QueryIndicatorsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getIndicatorsMethod(), getCallOptions()), request); } /** *
     * BurnTaxExemptionList returns all registered burn tax exemption addresses
     * 
*/ public com.google.common.util.concurrent.ListenableFuture burnTaxExemptionList( terra.treasury.v1beta1.QueryOuterClass.QueryBurnTaxExemptionListRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBurnTaxExemptionListMethod(), getCallOptions()), request); } /** *
     * Params queries all parameters.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture params( terra.treasury.v1beta1.QueryOuterClass.QueryParamsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getParamsMethod(), getCallOptions()), request); } } private static final int METHODID_TAX_RATE = 0; private static final int METHODID_TAX_CAP = 1; private static final int METHODID_TAX_CAPS = 2; private static final int METHODID_REWARD_WEIGHT = 3; private static final int METHODID_SEIGNIORAGE_PROCEEDS = 4; private static final int METHODID_TAX_PROCEEDS = 5; private static final int METHODID_INDICATORS = 6; private static final int METHODID_BURN_TAX_EXEMPTION_LIST = 7; private static final int METHODID_PARAMS = 8; 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 AsyncService serviceImpl; private final int methodId; MethodHandlers(AsyncService 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_TAX_RATE: serviceImpl.taxRate((terra.treasury.v1beta1.QueryOuterClass.QueryTaxRateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_TAX_CAP: serviceImpl.taxCap((terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_TAX_CAPS: serviceImpl.taxCaps((terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REWARD_WEIGHT: serviceImpl.rewardWeight((terra.treasury.v1beta1.QueryOuterClass.QueryRewardWeightRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SEIGNIORAGE_PROCEEDS: serviceImpl.seigniorageProceeds((terra.treasury.v1beta1.QueryOuterClass.QuerySeigniorageProceedsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_TAX_PROCEEDS: serviceImpl.taxProceeds((terra.treasury.v1beta1.QueryOuterClass.QueryTaxProceedsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_INDICATORS: serviceImpl.indicators((terra.treasury.v1beta1.QueryOuterClass.QueryIndicatorsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BURN_TAX_EXEMPTION_LIST: serviceImpl.burnTaxExemptionList((terra.treasury.v1beta1.QueryOuterClass.QueryBurnTaxExemptionListRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_PARAMS: serviceImpl.params((terra.treasury.v1beta1.QueryOuterClass.QueryParamsRequest) 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(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getTaxRateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< terra.treasury.v1beta1.QueryOuterClass.QueryTaxRateRequest, terra.treasury.v1beta1.QueryOuterClass.QueryTaxRateResponse>( service, METHODID_TAX_RATE))) .addMethod( getTaxCapMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapRequest, terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapResponse>( service, METHODID_TAX_CAP))) .addMethod( getTaxCapsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapsRequest, terra.treasury.v1beta1.QueryOuterClass.QueryTaxCapsResponse>( service, METHODID_TAX_CAPS))) .addMethod( getRewardWeightMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< terra.treasury.v1beta1.QueryOuterClass.QueryRewardWeightRequest, terra.treasury.v1beta1.QueryOuterClass.QueryRewardWeightResponse>( service, METHODID_REWARD_WEIGHT))) .addMethod( getSeigniorageProceedsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< terra.treasury.v1beta1.QueryOuterClass.QuerySeigniorageProceedsRequest, terra.treasury.v1beta1.QueryOuterClass.QuerySeigniorageProceedsResponse>( service, METHODID_SEIGNIORAGE_PROCEEDS))) .addMethod( getTaxProceedsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< terra.treasury.v1beta1.QueryOuterClass.QueryTaxProceedsRequest, terra.treasury.v1beta1.QueryOuterClass.QueryTaxProceedsResponse>( service, METHODID_TAX_PROCEEDS))) .addMethod( getIndicatorsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< terra.treasury.v1beta1.QueryOuterClass.QueryIndicatorsRequest, terra.treasury.v1beta1.QueryOuterClass.QueryIndicatorsResponse>( service, METHODID_INDICATORS))) .addMethod( getBurnTaxExemptionListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< terra.treasury.v1beta1.QueryOuterClass.QueryBurnTaxExemptionListRequest, terra.treasury.v1beta1.QueryOuterClass.QueryBurnTaxExemptionListResponse>( service, METHODID_BURN_TAX_EXEMPTION_LIST))) .addMethod( getParamsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< terra.treasury.v1beta1.QueryOuterClass.QueryParamsRequest, terra.treasury.v1beta1.QueryOuterClass.QueryParamsResponse>( service, METHODID_PARAMS))) .build(); } 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 terra.treasury.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 java.lang.String methodName; QueryMethodDescriptorSupplier(java.lang.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(getTaxRateMethod()) .addMethod(getTaxCapMethod()) .addMethod(getTaxCapsMethod()) .addMethod(getRewardWeightMethod()) .addMethod(getSeigniorageProceedsMethod()) .addMethod(getTaxProceedsMethod()) .addMethod(getIndicatorsMethod()) .addMethod(getBurnTaxExemptionListMethod()) .addMethod(getParamsMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy