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

cosmos.gov.v1beta1.QueryGrpc Maven / Gradle / Ivy

package cosmos.gov.v1beta1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Query defines the gRPC querier service for gov module
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.40.1)", comments = "Source: cosmos/gov/v1beta1/query.proto") @io.grpc.stub.annotations.GrpcGenerated public final class QueryGrpc { private QueryGrpc() {} public static final String SERVICE_NAME = "cosmos.gov.v1beta1.Query"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getProposalMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Proposal", requestType = cosmos.gov.v1beta1.QueryOuterClass.QueryProposalRequest.class, responseType = cosmos.gov.v1beta1.QueryOuterClass.QueryProposalResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getProposalMethod() { io.grpc.MethodDescriptor getProposalMethod; if ((getProposalMethod = QueryGrpc.getProposalMethod) == null) { synchronized (QueryGrpc.class) { if ((getProposalMethod = QueryGrpc.getProposalMethod) == null) { QueryGrpc.getProposalMethod = getProposalMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Proposal")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.QueryOuterClass.QueryProposalRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.QueryOuterClass.QueryProposalResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Proposal")) .build(); } } } return getProposalMethod; } private static volatile io.grpc.MethodDescriptor getProposalsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Proposals", requestType = cosmos.gov.v1beta1.QueryOuterClass.QueryProposalsRequest.class, responseType = cosmos.gov.v1beta1.QueryOuterClass.QueryProposalsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getProposalsMethod() { io.grpc.MethodDescriptor getProposalsMethod; if ((getProposalsMethod = QueryGrpc.getProposalsMethod) == null) { synchronized (QueryGrpc.class) { if ((getProposalsMethod = QueryGrpc.getProposalsMethod) == null) { QueryGrpc.getProposalsMethod = getProposalsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Proposals")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.QueryOuterClass.QueryProposalsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.QueryOuterClass.QueryProposalsResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Proposals")) .build(); } } } return getProposalsMethod; } private static volatile io.grpc.MethodDescriptor getVoteMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Vote", requestType = cosmos.gov.v1beta1.QueryOuterClass.QueryVoteRequest.class, responseType = cosmos.gov.v1beta1.QueryOuterClass.QueryVoteResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getVoteMethod() { io.grpc.MethodDescriptor getVoteMethod; if ((getVoteMethod = QueryGrpc.getVoteMethod) == null) { synchronized (QueryGrpc.class) { if ((getVoteMethod = QueryGrpc.getVoteMethod) == null) { QueryGrpc.getVoteMethod = getVoteMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Vote")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.QueryOuterClass.QueryVoteRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.QueryOuterClass.QueryVoteResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Vote")) .build(); } } } return getVoteMethod; } private static volatile io.grpc.MethodDescriptor getVotesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Votes", requestType = cosmos.gov.v1beta1.QueryOuterClass.QueryVotesRequest.class, responseType = cosmos.gov.v1beta1.QueryOuterClass.QueryVotesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getVotesMethod() { io.grpc.MethodDescriptor getVotesMethod; if ((getVotesMethod = QueryGrpc.getVotesMethod) == null) { synchronized (QueryGrpc.class) { if ((getVotesMethod = QueryGrpc.getVotesMethod) == null) { QueryGrpc.getVotesMethod = getVotesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Votes")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.QueryOuterClass.QueryVotesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.QueryOuterClass.QueryVotesResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Votes")) .build(); } } } return getVotesMethod; } private static volatile io.grpc.MethodDescriptor getParamsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Params", requestType = cosmos.gov.v1beta1.QueryOuterClass.QueryParamsRequest.class, responseType = cosmos.gov.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.gov.v1beta1.QueryOuterClass.QueryParamsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.QueryOuterClass.QueryParamsResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Params")) .build(); } } } return getParamsMethod; } private static volatile io.grpc.MethodDescriptor getDepositMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Deposit", requestType = cosmos.gov.v1beta1.QueryOuterClass.QueryDepositRequest.class, responseType = cosmos.gov.v1beta1.QueryOuterClass.QueryDepositResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getDepositMethod() { io.grpc.MethodDescriptor getDepositMethod; if ((getDepositMethod = QueryGrpc.getDepositMethod) == null) { synchronized (QueryGrpc.class) { if ((getDepositMethod = QueryGrpc.getDepositMethod) == null) { QueryGrpc.getDepositMethod = getDepositMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Deposit")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.QueryOuterClass.QueryDepositRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.QueryOuterClass.QueryDepositResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Deposit")) .build(); } } } return getDepositMethod; } private static volatile io.grpc.MethodDescriptor getDepositsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Deposits", requestType = cosmos.gov.v1beta1.QueryOuterClass.QueryDepositsRequest.class, responseType = cosmos.gov.v1beta1.QueryOuterClass.QueryDepositsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getDepositsMethod() { io.grpc.MethodDescriptor getDepositsMethod; if ((getDepositsMethod = QueryGrpc.getDepositsMethod) == null) { synchronized (QueryGrpc.class) { if ((getDepositsMethod = QueryGrpc.getDepositsMethod) == null) { QueryGrpc.getDepositsMethod = getDepositsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Deposits")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.QueryOuterClass.QueryDepositsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.QueryOuterClass.QueryDepositsResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Deposits")) .build(); } } } return getDepositsMethod; } private static volatile io.grpc.MethodDescriptor getTallyResultMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TallyResult", requestType = cosmos.gov.v1beta1.QueryOuterClass.QueryTallyResultRequest.class, responseType = cosmos.gov.v1beta1.QueryOuterClass.QueryTallyResultResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getTallyResultMethod() { io.grpc.MethodDescriptor getTallyResultMethod; if ((getTallyResultMethod = QueryGrpc.getTallyResultMethod) == null) { synchronized (QueryGrpc.class) { if ((getTallyResultMethod = QueryGrpc.getTallyResultMethod) == null) { QueryGrpc.getTallyResultMethod = getTallyResultMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TallyResult")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.QueryOuterClass.QueryTallyResultRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.QueryOuterClass.QueryTallyResultResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("TallyResult")) .build(); } } } return getTallyResultMethod; } /** * 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 for gov module
   * 
*/ public static abstract class QueryImplBase implements io.grpc.BindableService { /** *
     * Proposal queries proposal details based on ProposalID.
     * 
*/ public void proposal(cosmos.gov.v1beta1.QueryOuterClass.QueryProposalRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getProposalMethod(), responseObserver); } /** *
     * Proposals queries all proposals based on given status.
     * 
*/ public void proposals(cosmos.gov.v1beta1.QueryOuterClass.QueryProposalsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getProposalsMethod(), responseObserver); } /** *
     * Vote queries voted information based on proposalID, voterAddr.
     * 
*/ public void vote(cosmos.gov.v1beta1.QueryOuterClass.QueryVoteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVoteMethod(), responseObserver); } /** *
     * Votes queries votes of a given proposal.
     * 
*/ public void votes(cosmos.gov.v1beta1.QueryOuterClass.QueryVotesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVotesMethod(), responseObserver); } /** *
     * Params queries all parameters of the gov module.
     * 
*/ public void params(cosmos.gov.v1beta1.QueryOuterClass.QueryParamsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getParamsMethod(), responseObserver); } /** *
     * Deposit queries single deposit information based proposalID, depositAddr.
     * 
*/ public void deposit(cosmos.gov.v1beta1.QueryOuterClass.QueryDepositRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDepositMethod(), responseObserver); } /** *
     * Deposits queries all deposits of a single proposal.
     * 
*/ public void deposits(cosmos.gov.v1beta1.QueryOuterClass.QueryDepositsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDepositsMethod(), responseObserver); } /** *
     * TallyResult queries the tally of a proposal vote.
     * 
*/ public void tallyResult(cosmos.gov.v1beta1.QueryOuterClass.QueryTallyResultRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTallyResultMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getProposalMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cosmos.gov.v1beta1.QueryOuterClass.QueryProposalRequest, cosmos.gov.v1beta1.QueryOuterClass.QueryProposalResponse>( this, METHODID_PROPOSAL))) .addMethod( getProposalsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cosmos.gov.v1beta1.QueryOuterClass.QueryProposalsRequest, cosmos.gov.v1beta1.QueryOuterClass.QueryProposalsResponse>( this, METHODID_PROPOSALS))) .addMethod( getVoteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cosmos.gov.v1beta1.QueryOuterClass.QueryVoteRequest, cosmos.gov.v1beta1.QueryOuterClass.QueryVoteResponse>( this, METHODID_VOTE))) .addMethod( getVotesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cosmos.gov.v1beta1.QueryOuterClass.QueryVotesRequest, cosmos.gov.v1beta1.QueryOuterClass.QueryVotesResponse>( this, METHODID_VOTES))) .addMethod( getParamsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cosmos.gov.v1beta1.QueryOuterClass.QueryParamsRequest, cosmos.gov.v1beta1.QueryOuterClass.QueryParamsResponse>( this, METHODID_PARAMS))) .addMethod( getDepositMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cosmos.gov.v1beta1.QueryOuterClass.QueryDepositRequest, cosmos.gov.v1beta1.QueryOuterClass.QueryDepositResponse>( this, METHODID_DEPOSIT))) .addMethod( getDepositsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cosmos.gov.v1beta1.QueryOuterClass.QueryDepositsRequest, cosmos.gov.v1beta1.QueryOuterClass.QueryDepositsResponse>( this, METHODID_DEPOSITS))) .addMethod( getTallyResultMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cosmos.gov.v1beta1.QueryOuterClass.QueryTallyResultRequest, cosmos.gov.v1beta1.QueryOuterClass.QueryTallyResultResponse>( this, METHODID_TALLY_RESULT))) .build(); } } /** *
   * Query defines the gRPC querier service for gov module
   * 
*/ 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); } /** *
     * Proposal queries proposal details based on ProposalID.
     * 
*/ public void proposal(cosmos.gov.v1beta1.QueryOuterClass.QueryProposalRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getProposalMethod(), getCallOptions()), request, responseObserver); } /** *
     * Proposals queries all proposals based on given status.
     * 
*/ public void proposals(cosmos.gov.v1beta1.QueryOuterClass.QueryProposalsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getProposalsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Vote queries voted information based on proposalID, voterAddr.
     * 
*/ public void vote(cosmos.gov.v1beta1.QueryOuterClass.QueryVoteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getVoteMethod(), getCallOptions()), request, responseObserver); } /** *
     * Votes queries votes of a given proposal.
     * 
*/ public void votes(cosmos.gov.v1beta1.QueryOuterClass.QueryVotesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getVotesMethod(), getCallOptions()), request, responseObserver); } /** *
     * Params queries all parameters of the gov module.
     * 
*/ public void params(cosmos.gov.v1beta1.QueryOuterClass.QueryParamsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getParamsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Deposit queries single deposit information based proposalID, depositAddr.
     * 
*/ public void deposit(cosmos.gov.v1beta1.QueryOuterClass.QueryDepositRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDepositMethod(), getCallOptions()), request, responseObserver); } /** *
     * Deposits queries all deposits of a single proposal.
     * 
*/ public void deposits(cosmos.gov.v1beta1.QueryOuterClass.QueryDepositsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDepositsMethod(), getCallOptions()), request, responseObserver); } /** *
     * TallyResult queries the tally of a proposal vote.
     * 
*/ public void tallyResult(cosmos.gov.v1beta1.QueryOuterClass.QueryTallyResultRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTallyResultMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Query defines the gRPC querier service for gov module
   * 
*/ 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); } /** *
     * Proposal queries proposal details based on ProposalID.
     * 
*/ public cosmos.gov.v1beta1.QueryOuterClass.QueryProposalResponse proposal(cosmos.gov.v1beta1.QueryOuterClass.QueryProposalRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getProposalMethod(), getCallOptions(), request); } /** *
     * Proposals queries all proposals based on given status.
     * 
*/ public cosmos.gov.v1beta1.QueryOuterClass.QueryProposalsResponse proposals(cosmos.gov.v1beta1.QueryOuterClass.QueryProposalsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getProposalsMethod(), getCallOptions(), request); } /** *
     * Vote queries voted information based on proposalID, voterAddr.
     * 
*/ public cosmos.gov.v1beta1.QueryOuterClass.QueryVoteResponse vote(cosmos.gov.v1beta1.QueryOuterClass.QueryVoteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getVoteMethod(), getCallOptions(), request); } /** *
     * Votes queries votes of a given proposal.
     * 
*/ public cosmos.gov.v1beta1.QueryOuterClass.QueryVotesResponse votes(cosmos.gov.v1beta1.QueryOuterClass.QueryVotesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getVotesMethod(), getCallOptions(), request); } /** *
     * Params queries all parameters of the gov module.
     * 
*/ public cosmos.gov.v1beta1.QueryOuterClass.QueryParamsResponse params(cosmos.gov.v1beta1.QueryOuterClass.QueryParamsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getParamsMethod(), getCallOptions(), request); } /** *
     * Deposit queries single deposit information based proposalID, depositAddr.
     * 
*/ public cosmos.gov.v1beta1.QueryOuterClass.QueryDepositResponse deposit(cosmos.gov.v1beta1.QueryOuterClass.QueryDepositRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDepositMethod(), getCallOptions(), request); } /** *
     * Deposits queries all deposits of a single proposal.
     * 
*/ public cosmos.gov.v1beta1.QueryOuterClass.QueryDepositsResponse deposits(cosmos.gov.v1beta1.QueryOuterClass.QueryDepositsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDepositsMethod(), getCallOptions(), request); } /** *
     * TallyResult queries the tally of a proposal vote.
     * 
*/ public cosmos.gov.v1beta1.QueryOuterClass.QueryTallyResultResponse tallyResult(cosmos.gov.v1beta1.QueryOuterClass.QueryTallyResultRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTallyResultMethod(), getCallOptions(), request); } } /** *
   * Query defines the gRPC querier service for gov module
   * 
*/ 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); } /** *
     * Proposal queries proposal details based on ProposalID.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture proposal( cosmos.gov.v1beta1.QueryOuterClass.QueryProposalRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getProposalMethod(), getCallOptions()), request); } /** *
     * Proposals queries all proposals based on given status.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture proposals( cosmos.gov.v1beta1.QueryOuterClass.QueryProposalsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getProposalsMethod(), getCallOptions()), request); } /** *
     * Vote queries voted information based on proposalID, voterAddr.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture vote( cosmos.gov.v1beta1.QueryOuterClass.QueryVoteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getVoteMethod(), getCallOptions()), request); } /** *
     * Votes queries votes of a given proposal.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture votes( cosmos.gov.v1beta1.QueryOuterClass.QueryVotesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getVotesMethod(), getCallOptions()), request); } /** *
     * Params queries all parameters of the gov module.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture params( cosmos.gov.v1beta1.QueryOuterClass.QueryParamsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getParamsMethod(), getCallOptions()), request); } /** *
     * Deposit queries single deposit information based proposalID, depositAddr.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deposit( cosmos.gov.v1beta1.QueryOuterClass.QueryDepositRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDepositMethod(), getCallOptions()), request); } /** *
     * Deposits queries all deposits of a single proposal.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deposits( cosmos.gov.v1beta1.QueryOuterClass.QueryDepositsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDepositsMethod(), getCallOptions()), request); } /** *
     * TallyResult queries the tally of a proposal vote.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture tallyResult( cosmos.gov.v1beta1.QueryOuterClass.QueryTallyResultRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTallyResultMethod(), getCallOptions()), request); } } private static final int METHODID_PROPOSAL = 0; private static final int METHODID_PROPOSALS = 1; private static final int METHODID_VOTE = 2; private static final int METHODID_VOTES = 3; private static final int METHODID_PARAMS = 4; private static final int METHODID_DEPOSIT = 5; private static final int METHODID_DEPOSITS = 6; private static final int METHODID_TALLY_RESULT = 7; 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_PROPOSAL: serviceImpl.proposal((cosmos.gov.v1beta1.QueryOuterClass.QueryProposalRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_PROPOSALS: serviceImpl.proposals((cosmos.gov.v1beta1.QueryOuterClass.QueryProposalsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_VOTE: serviceImpl.vote((cosmos.gov.v1beta1.QueryOuterClass.QueryVoteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_VOTES: serviceImpl.votes((cosmos.gov.v1beta1.QueryOuterClass.QueryVotesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_PARAMS: serviceImpl.params((cosmos.gov.v1beta1.QueryOuterClass.QueryParamsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DEPOSIT: serviceImpl.deposit((cosmos.gov.v1beta1.QueryOuterClass.QueryDepositRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DEPOSITS: serviceImpl.deposits((cosmos.gov.v1beta1.QueryOuterClass.QueryDepositsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_TALLY_RESULT: serviceImpl.tallyResult((cosmos.gov.v1beta1.QueryOuterClass.QueryTallyResultRequest) 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.gov.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(getProposalMethod()) .addMethod(getProposalsMethod()) .addMethod(getVoteMethod()) .addMethod(getVotesMethod()) .addMethod(getParamsMethod()) .addMethod(getDepositMethod()) .addMethod(getDepositsMethod()) .addMethod(getTallyResultMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy