
cosmos.staking.v1beta1.QueryGrpc Maven / Gradle / Ivy
package cosmos.staking.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/staking/v1beta1/query.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class QueryGrpc {
private QueryGrpc() {}
public static final String SERVICE_NAME = "cosmos.staking.v1beta1.Query";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getValidatorsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Validators",
requestType = cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest.class,
responseType = cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getValidatorsMethod() {
io.grpc.MethodDescriptor getValidatorsMethod;
if ((getValidatorsMethod = QueryGrpc.getValidatorsMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getValidatorsMethod = QueryGrpc.getValidatorsMethod) == null) {
QueryGrpc.getValidatorsMethod = getValidatorsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Validators"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("Validators"))
.build();
}
}
}
return getValidatorsMethod;
}
private static volatile io.grpc.MethodDescriptor getValidatorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Validator",
requestType = cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest.class,
responseType = cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getValidatorMethod() {
io.grpc.MethodDescriptor getValidatorMethod;
if ((getValidatorMethod = QueryGrpc.getValidatorMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getValidatorMethod = QueryGrpc.getValidatorMethod) == null) {
QueryGrpc.getValidatorMethod = getValidatorMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Validator"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("Validator"))
.build();
}
}
}
return getValidatorMethod;
}
private static volatile io.grpc.MethodDescriptor getValidatorDelegationsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ValidatorDelegations",
requestType = cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest.class,
responseType = cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getValidatorDelegationsMethod() {
io.grpc.MethodDescriptor getValidatorDelegationsMethod;
if ((getValidatorDelegationsMethod = QueryGrpc.getValidatorDelegationsMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getValidatorDelegationsMethod = QueryGrpc.getValidatorDelegationsMethod) == null) {
QueryGrpc.getValidatorDelegationsMethod = getValidatorDelegationsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidatorDelegations"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("ValidatorDelegations"))
.build();
}
}
}
return getValidatorDelegationsMethod;
}
private static volatile io.grpc.MethodDescriptor getValidatorUnbondingDelegationsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ValidatorUnbondingDelegations",
requestType = cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest.class,
responseType = cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getValidatorUnbondingDelegationsMethod() {
io.grpc.MethodDescriptor getValidatorUnbondingDelegationsMethod;
if ((getValidatorUnbondingDelegationsMethod = QueryGrpc.getValidatorUnbondingDelegationsMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getValidatorUnbondingDelegationsMethod = QueryGrpc.getValidatorUnbondingDelegationsMethod) == null) {
QueryGrpc.getValidatorUnbondingDelegationsMethod = getValidatorUnbondingDelegationsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidatorUnbondingDelegations"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("ValidatorUnbondingDelegations"))
.build();
}
}
}
return getValidatorUnbondingDelegationsMethod;
}
private static volatile io.grpc.MethodDescriptor getDelegationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Delegation",
requestType = cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest.class,
responseType = cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDelegationMethod() {
io.grpc.MethodDescriptor getDelegationMethod;
if ((getDelegationMethod = QueryGrpc.getDelegationMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getDelegationMethod = QueryGrpc.getDelegationMethod) == null) {
QueryGrpc.getDelegationMethod = getDelegationMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Delegation"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("Delegation"))
.build();
}
}
}
return getDelegationMethod;
}
private static volatile io.grpc.MethodDescriptor getUnbondingDelegationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UnbondingDelegation",
requestType = cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest.class,
responseType = cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUnbondingDelegationMethod() {
io.grpc.MethodDescriptor getUnbondingDelegationMethod;
if ((getUnbondingDelegationMethod = QueryGrpc.getUnbondingDelegationMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getUnbondingDelegationMethod = QueryGrpc.getUnbondingDelegationMethod) == null) {
QueryGrpc.getUnbondingDelegationMethod = getUnbondingDelegationMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UnbondingDelegation"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("UnbondingDelegation"))
.build();
}
}
}
return getUnbondingDelegationMethod;
}
private static volatile io.grpc.MethodDescriptor getDelegatorDelegationsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DelegatorDelegations",
requestType = cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest.class,
responseType = cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDelegatorDelegationsMethod() {
io.grpc.MethodDescriptor getDelegatorDelegationsMethod;
if ((getDelegatorDelegationsMethod = QueryGrpc.getDelegatorDelegationsMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getDelegatorDelegationsMethod = QueryGrpc.getDelegatorDelegationsMethod) == null) {
QueryGrpc.getDelegatorDelegationsMethod = getDelegatorDelegationsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DelegatorDelegations"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("DelegatorDelegations"))
.build();
}
}
}
return getDelegatorDelegationsMethod;
}
private static volatile io.grpc.MethodDescriptor getDelegatorUnbondingDelegationsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DelegatorUnbondingDelegations",
requestType = cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest.class,
responseType = cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDelegatorUnbondingDelegationsMethod() {
io.grpc.MethodDescriptor getDelegatorUnbondingDelegationsMethod;
if ((getDelegatorUnbondingDelegationsMethod = QueryGrpc.getDelegatorUnbondingDelegationsMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getDelegatorUnbondingDelegationsMethod = QueryGrpc.getDelegatorUnbondingDelegationsMethod) == null) {
QueryGrpc.getDelegatorUnbondingDelegationsMethod = getDelegatorUnbondingDelegationsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DelegatorUnbondingDelegations"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("DelegatorUnbondingDelegations"))
.build();
}
}
}
return getDelegatorUnbondingDelegationsMethod;
}
private static volatile io.grpc.MethodDescriptor getRedelegationsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Redelegations",
requestType = cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest.class,
responseType = cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRedelegationsMethod() {
io.grpc.MethodDescriptor getRedelegationsMethod;
if ((getRedelegationsMethod = QueryGrpc.getRedelegationsMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getRedelegationsMethod = QueryGrpc.getRedelegationsMethod) == null) {
QueryGrpc.getRedelegationsMethod = getRedelegationsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Redelegations"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("Redelegations"))
.build();
}
}
}
return getRedelegationsMethod;
}
private static volatile io.grpc.MethodDescriptor getDelegatorValidatorsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DelegatorValidators",
requestType = cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest.class,
responseType = cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDelegatorValidatorsMethod() {
io.grpc.MethodDescriptor getDelegatorValidatorsMethod;
if ((getDelegatorValidatorsMethod = QueryGrpc.getDelegatorValidatorsMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getDelegatorValidatorsMethod = QueryGrpc.getDelegatorValidatorsMethod) == null) {
QueryGrpc.getDelegatorValidatorsMethod = getDelegatorValidatorsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DelegatorValidators"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("DelegatorValidators"))
.build();
}
}
}
return getDelegatorValidatorsMethod;
}
private static volatile io.grpc.MethodDescriptor getDelegatorValidatorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DelegatorValidator",
requestType = cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest.class,
responseType = cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDelegatorValidatorMethod() {
io.grpc.MethodDescriptor getDelegatorValidatorMethod;
if ((getDelegatorValidatorMethod = QueryGrpc.getDelegatorValidatorMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getDelegatorValidatorMethod = QueryGrpc.getDelegatorValidatorMethod) == null) {
QueryGrpc.getDelegatorValidatorMethod = getDelegatorValidatorMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DelegatorValidator"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("DelegatorValidator"))
.build();
}
}
}
return getDelegatorValidatorMethod;
}
private static volatile io.grpc.MethodDescriptor getHistoricalInfoMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "HistoricalInfo",
requestType = cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest.class,
responseType = cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getHistoricalInfoMethod() {
io.grpc.MethodDescriptor getHistoricalInfoMethod;
if ((getHistoricalInfoMethod = QueryGrpc.getHistoricalInfoMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getHistoricalInfoMethod = QueryGrpc.getHistoricalInfoMethod) == null) {
QueryGrpc.getHistoricalInfoMethod = getHistoricalInfoMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "HistoricalInfo"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("HistoricalInfo"))
.build();
}
}
}
return getHistoricalInfoMethod;
}
private static volatile io.grpc.MethodDescriptor getPoolMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Pool",
requestType = cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest.class,
responseType = cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getPoolMethod() {
io.grpc.MethodDescriptor getPoolMethod;
if ((getPoolMethod = QueryGrpc.getPoolMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getPoolMethod = QueryGrpc.getPoolMethod) == null) {
QueryGrpc.getPoolMethod = getPoolMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Pool"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("Pool"))
.build();
}
}
}
return getPoolMethod;
}
private static volatile io.grpc.MethodDescriptor getParamsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Params",
requestType = cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest.class,
responseType = cosmos.staking.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.staking.v1beta1.QueryOuterClass.QueryParamsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.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 static abstract class QueryImplBase implements io.grpc.BindableService {
/**
*
* Validators queries all validators that match the given status.
*
*/
public void validators(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidatorsMethod(), responseObserver);
}
/**
*
* Validator queries validator info for given validator address.
*
*/
public void validator(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidatorMethod(), responseObserver);
}
/**
*
* ValidatorDelegations queries delegate info for given validator.
*
*/
public void validatorDelegations(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidatorDelegationsMethod(), responseObserver);
}
/**
*
* ValidatorUnbondingDelegations queries unbonding delegations of a validator.
*
*/
public void validatorUnbondingDelegations(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidatorUnbondingDelegationsMethod(), responseObserver);
}
/**
*
* Delegation queries delegate info for given validator delegator pair.
*
*/
public void delegation(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDelegationMethod(), responseObserver);
}
/**
*
* UnbondingDelegation queries unbonding info for given validator delegator
* pair.
*
*/
public void unbondingDelegation(cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUnbondingDelegationMethod(), responseObserver);
}
/**
*
* DelegatorDelegations queries all delegations of a given delegator address.
*
*/
public void delegatorDelegations(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDelegatorDelegationsMethod(), responseObserver);
}
/**
*
* DelegatorUnbondingDelegations queries all unbonding delegations of a given
* delegator address.
*
*/
public void delegatorUnbondingDelegations(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDelegatorUnbondingDelegationsMethod(), responseObserver);
}
/**
*
* Redelegations queries redelegations of given address.
*
*/
public void redelegations(cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRedelegationsMethod(), responseObserver);
}
/**
*
* DelegatorValidators queries all validators info for given delegator
* address.
*
*/
public void delegatorValidators(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDelegatorValidatorsMethod(), responseObserver);
}
/**
*
* DelegatorValidator queries validator info for given delegator validator
* pair.
*
*/
public void delegatorValidator(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDelegatorValidatorMethod(), responseObserver);
}
/**
*
* HistoricalInfo queries the historical info for given height.
*
*/
public void historicalInfo(cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getHistoricalInfoMethod(), responseObserver);
}
/**
*
* Pool queries the pool info.
*
*/
public void pool(cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPoolMethod(), responseObserver);
}
/**
*
* Parameters queries the staking parameters.
*
*/
public void params(cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getParamsMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getValidatorsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest,
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse>(
this, METHODID_VALIDATORS)))
.addMethod(
getValidatorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest,
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse>(
this, METHODID_VALIDATOR)))
.addMethod(
getValidatorDelegationsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest,
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse>(
this, METHODID_VALIDATOR_DELEGATIONS)))
.addMethod(
getValidatorUnbondingDelegationsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest,
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse>(
this, METHODID_VALIDATOR_UNBONDING_DELEGATIONS)))
.addMethod(
getDelegationMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest,
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse>(
this, METHODID_DELEGATION)))
.addMethod(
getUnbondingDelegationMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest,
cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse>(
this, METHODID_UNBONDING_DELEGATION)))
.addMethod(
getDelegatorDelegationsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest,
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse>(
this, METHODID_DELEGATOR_DELEGATIONS)))
.addMethod(
getDelegatorUnbondingDelegationsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest,
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse>(
this, METHODID_DELEGATOR_UNBONDING_DELEGATIONS)))
.addMethod(
getRedelegationsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest,
cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse>(
this, METHODID_REDELEGATIONS)))
.addMethod(
getDelegatorValidatorsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest,
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse>(
this, METHODID_DELEGATOR_VALIDATORS)))
.addMethod(
getDelegatorValidatorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest,
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse>(
this, METHODID_DELEGATOR_VALIDATOR)))
.addMethod(
getHistoricalInfoMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest,
cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse>(
this, METHODID_HISTORICAL_INFO)))
.addMethod(
getPoolMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest,
cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse>(
this, METHODID_POOL)))
.addMethod(
getParamsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest,
cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse>(
this, METHODID_PARAMS)))
.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);
}
/**
*
* Validators queries all validators that match the given status.
*
*/
public void validators(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getValidatorsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Validator queries validator info for given validator address.
*
*/
public void validator(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getValidatorMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* ValidatorDelegations queries delegate info for given validator.
*
*/
public void validatorDelegations(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getValidatorDelegationsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* ValidatorUnbondingDelegations queries unbonding delegations of a validator.
*
*/
public void validatorUnbondingDelegations(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getValidatorUnbondingDelegationsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Delegation queries delegate info for given validator delegator pair.
*
*/
public void delegation(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDelegationMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* UnbondingDelegation queries unbonding info for given validator delegator
* pair.
*
*/
public void unbondingDelegation(cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUnbondingDelegationMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* DelegatorDelegations queries all delegations of a given delegator address.
*
*/
public void delegatorDelegations(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDelegatorDelegationsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* DelegatorUnbondingDelegations queries all unbonding delegations of a given
* delegator address.
*
*/
public void delegatorUnbondingDelegations(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDelegatorUnbondingDelegationsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Redelegations queries redelegations of given address.
*
*/
public void redelegations(cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRedelegationsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* DelegatorValidators queries all validators info for given delegator
* address.
*
*/
public void delegatorValidators(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDelegatorValidatorsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* DelegatorValidator queries validator info for given delegator validator
* pair.
*
*/
public void delegatorValidator(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDelegatorValidatorMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* HistoricalInfo queries the historical info for given height.
*
*/
public void historicalInfo(cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getHistoricalInfoMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Pool queries the pool info.
*
*/
public void pool(cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getPoolMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Parameters queries the staking parameters.
*
*/
public void params(cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getParamsMethod(), 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);
}
/**
*
* Validators queries all validators that match the given status.
*
*/
public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse validators(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getValidatorsMethod(), getCallOptions(), request);
}
/**
*
* Validator queries validator info for given validator address.
*
*/
public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse validator(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getValidatorMethod(), getCallOptions(), request);
}
/**
*
* ValidatorDelegations queries delegate info for given validator.
*
*/
public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse validatorDelegations(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getValidatorDelegationsMethod(), getCallOptions(), request);
}
/**
*
* ValidatorUnbondingDelegations queries unbonding delegations of a validator.
*
*/
public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse validatorUnbondingDelegations(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getValidatorUnbondingDelegationsMethod(), getCallOptions(), request);
}
/**
*
* Delegation queries delegate info for given validator delegator pair.
*
*/
public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse delegation(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDelegationMethod(), getCallOptions(), request);
}
/**
*
* UnbondingDelegation queries unbonding info for given validator delegator
* pair.
*
*/
public cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse unbondingDelegation(cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUnbondingDelegationMethod(), getCallOptions(), request);
}
/**
*
* DelegatorDelegations queries all delegations of a given delegator address.
*
*/
public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse delegatorDelegations(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDelegatorDelegationsMethod(), getCallOptions(), request);
}
/**
*
* DelegatorUnbondingDelegations queries all unbonding delegations of a given
* delegator address.
*
*/
public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse delegatorUnbondingDelegations(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDelegatorUnbondingDelegationsMethod(), getCallOptions(), request);
}
/**
*
* Redelegations queries redelegations of given address.
*
*/
public cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse redelegations(cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRedelegationsMethod(), getCallOptions(), request);
}
/**
*
* DelegatorValidators queries all validators info for given delegator
* address.
*
*/
public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse delegatorValidators(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDelegatorValidatorsMethod(), getCallOptions(), request);
}
/**
*
* DelegatorValidator queries validator info for given delegator validator
* pair.
*
*/
public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse delegatorValidator(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDelegatorValidatorMethod(), getCallOptions(), request);
}
/**
*
* HistoricalInfo queries the historical info for given height.
*
*/
public cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse historicalInfo(cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getHistoricalInfoMethod(), getCallOptions(), request);
}
/**
*
* Pool queries the pool info.
*
*/
public cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse pool(cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPoolMethod(), getCallOptions(), request);
}
/**
*
* Parameters queries the staking parameters.
*
*/
public cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse params(cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getParamsMethod(), 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);
}
/**
*
* Validators queries all validators that match the given status.
*
*/
public com.google.common.util.concurrent.ListenableFuture validators(
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getValidatorsMethod(), getCallOptions()), request);
}
/**
*
* Validator queries validator info for given validator address.
*
*/
public com.google.common.util.concurrent.ListenableFuture validator(
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getValidatorMethod(), getCallOptions()), request);
}
/**
*
* ValidatorDelegations queries delegate info for given validator.
*
*/
public com.google.common.util.concurrent.ListenableFuture validatorDelegations(
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getValidatorDelegationsMethod(), getCallOptions()), request);
}
/**
*
* ValidatorUnbondingDelegations queries unbonding delegations of a validator.
*
*/
public com.google.common.util.concurrent.ListenableFuture validatorUnbondingDelegations(
cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getValidatorUnbondingDelegationsMethod(), getCallOptions()), request);
}
/**
*
* Delegation queries delegate info for given validator delegator pair.
*
*/
public com.google.common.util.concurrent.ListenableFuture delegation(
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDelegationMethod(), getCallOptions()), request);
}
/**
*
* UnbondingDelegation queries unbonding info for given validator delegator
* pair.
*
*/
public com.google.common.util.concurrent.ListenableFuture unbondingDelegation(
cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUnbondingDelegationMethod(), getCallOptions()), request);
}
/**
*
* DelegatorDelegations queries all delegations of a given delegator address.
*
*/
public com.google.common.util.concurrent.ListenableFuture delegatorDelegations(
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDelegatorDelegationsMethod(), getCallOptions()), request);
}
/**
*
* DelegatorUnbondingDelegations queries all unbonding delegations of a given
* delegator address.
*
*/
public com.google.common.util.concurrent.ListenableFuture delegatorUnbondingDelegations(
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDelegatorUnbondingDelegationsMethod(), getCallOptions()), request);
}
/**
*
* Redelegations queries redelegations of given address.
*
*/
public com.google.common.util.concurrent.ListenableFuture redelegations(
cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRedelegationsMethod(), getCallOptions()), request);
}
/**
*
* DelegatorValidators queries all validators info for given delegator
* address.
*
*/
public com.google.common.util.concurrent.ListenableFuture delegatorValidators(
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDelegatorValidatorsMethod(), getCallOptions()), request);
}
/**
*
* DelegatorValidator queries validator info for given delegator validator
* pair.
*
*/
public com.google.common.util.concurrent.ListenableFuture delegatorValidator(
cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDelegatorValidatorMethod(), getCallOptions()), request);
}
/**
*
* HistoricalInfo queries the historical info for given height.
*
*/
public com.google.common.util.concurrent.ListenableFuture historicalInfo(
cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getHistoricalInfoMethod(), getCallOptions()), request);
}
/**
*
* Pool queries the pool info.
*
*/
public com.google.common.util.concurrent.ListenableFuture pool(
cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getPoolMethod(), getCallOptions()), request);
}
/**
*
* Parameters queries the staking parameters.
*
*/
public com.google.common.util.concurrent.ListenableFuture params(
cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getParamsMethod(), getCallOptions()), request);
}
}
private static final int METHODID_VALIDATORS = 0;
private static final int METHODID_VALIDATOR = 1;
private static final int METHODID_VALIDATOR_DELEGATIONS = 2;
private static final int METHODID_VALIDATOR_UNBONDING_DELEGATIONS = 3;
private static final int METHODID_DELEGATION = 4;
private static final int METHODID_UNBONDING_DELEGATION = 5;
private static final int METHODID_DELEGATOR_DELEGATIONS = 6;
private static final int METHODID_DELEGATOR_UNBONDING_DELEGATIONS = 7;
private static final int METHODID_REDELEGATIONS = 8;
private static final int METHODID_DELEGATOR_VALIDATORS = 9;
private static final int METHODID_DELEGATOR_VALIDATOR = 10;
private static final int METHODID_HISTORICAL_INFO = 11;
private static final int METHODID_POOL = 12;
private static final int METHODID_PARAMS = 13;
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_VALIDATORS:
serviceImpl.validators((cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_VALIDATOR:
serviceImpl.validator((cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_VALIDATOR_DELEGATIONS:
serviceImpl.validatorDelegations((cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_VALIDATOR_UNBONDING_DELEGATIONS:
serviceImpl.validatorUnbondingDelegations((cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELEGATION:
serviceImpl.delegation((cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UNBONDING_DELEGATION:
serviceImpl.unbondingDelegation((cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELEGATOR_DELEGATIONS:
serviceImpl.delegatorDelegations((cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELEGATOR_UNBONDING_DELEGATIONS:
serviceImpl.delegatorUnbondingDelegations((cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REDELEGATIONS:
serviceImpl.redelegations((cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELEGATOR_VALIDATORS:
serviceImpl.delegatorValidators((cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELEGATOR_VALIDATOR:
serviceImpl.delegatorValidator((cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_HISTORICAL_INFO:
serviceImpl.historicalInfo((cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_POOL:
serviceImpl.pool((cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PARAMS:
serviceImpl.params((cosmos.staking.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();
}
}
}
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.staking.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(getValidatorsMethod())
.addMethod(getValidatorMethod())
.addMethod(getValidatorDelegationsMethod())
.addMethod(getValidatorUnbondingDelegationsMethod())
.addMethod(getDelegationMethod())
.addMethod(getUnbondingDelegationMethod())
.addMethod(getDelegatorDelegationsMethod())
.addMethod(getDelegatorUnbondingDelegationsMethod())
.addMethod(getRedelegationsMethod())
.addMethod(getDelegatorValidatorsMethod())
.addMethod(getDelegatorValidatorMethod())
.addMethod(getHistoricalInfoMethod())
.addMethod(getPoolMethod())
.addMethod(getParamsMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy