
cosmos.auth.v1beta1.QueryGrpc Maven / Gradle / Ivy
package cosmos.auth.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/auth/v1beta1/query.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class QueryGrpc {
private QueryGrpc() {}
public static final String SERVICE_NAME = "cosmos.auth.v1beta1.Query";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getAccountsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Accounts",
requestType = cosmos.auth.v1beta1.QueryOuterClass.QueryAccountsRequest.class,
responseType = cosmos.auth.v1beta1.QueryOuterClass.QueryAccountsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAccountsMethod() {
io.grpc.MethodDescriptor getAccountsMethod;
if ((getAccountsMethod = QueryGrpc.getAccountsMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getAccountsMethod = QueryGrpc.getAccountsMethod) == null) {
QueryGrpc.getAccountsMethod = getAccountsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Accounts"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.auth.v1beta1.QueryOuterClass.QueryAccountsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.auth.v1beta1.QueryOuterClass.QueryAccountsResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("Accounts"))
.build();
}
}
}
return getAccountsMethod;
}
private static volatile io.grpc.MethodDescriptor getAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Account",
requestType = cosmos.auth.v1beta1.QueryOuterClass.QueryAccountRequest.class,
responseType = cosmos.auth.v1beta1.QueryOuterClass.QueryAccountResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAccountMethod() {
io.grpc.MethodDescriptor getAccountMethod;
if ((getAccountMethod = QueryGrpc.getAccountMethod) == null) {
synchronized (QueryGrpc.class) {
if ((getAccountMethod = QueryGrpc.getAccountMethod) == null) {
QueryGrpc.getAccountMethod = getAccountMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Account"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.auth.v1beta1.QueryOuterClass.QueryAccountRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.auth.v1beta1.QueryOuterClass.QueryAccountResponse.getDefaultInstance()))
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("Account"))
.build();
}
}
}
return getAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getParamsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Params",
requestType = cosmos.auth.v1beta1.QueryOuterClass.QueryParamsRequest.class,
responseType = cosmos.auth.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.auth.v1beta1.QueryOuterClass.QueryParamsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.auth.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 {
/**
*
* Accounts returns all the existing accounts
*
*/
public void accounts(cosmos.auth.v1beta1.QueryOuterClass.QueryAccountsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAccountsMethod(), responseObserver);
}
/**
*
* Account returns account details based on address.
*
*/
public void account(cosmos.auth.v1beta1.QueryOuterClass.QueryAccountRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAccountMethod(), responseObserver);
}
/**
*
* Params queries all parameters.
*
*/
public void params(cosmos.auth.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(
getAccountsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.auth.v1beta1.QueryOuterClass.QueryAccountsRequest,
cosmos.auth.v1beta1.QueryOuterClass.QueryAccountsResponse>(
this, METHODID_ACCOUNTS)))
.addMethod(
getAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.auth.v1beta1.QueryOuterClass.QueryAccountRequest,
cosmos.auth.v1beta1.QueryOuterClass.QueryAccountResponse>(
this, METHODID_ACCOUNT)))
.addMethod(
getParamsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.auth.v1beta1.QueryOuterClass.QueryParamsRequest,
cosmos.auth.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);
}
/**
*
* Accounts returns all the existing accounts
*
*/
public void accounts(cosmos.auth.v1beta1.QueryOuterClass.QueryAccountsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getAccountsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Account returns account details based on address.
*
*/
public void account(cosmos.auth.v1beta1.QueryOuterClass.QueryAccountRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getAccountMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Params queries all parameters.
*
*/
public void params(cosmos.auth.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);
}
/**
*
* Accounts returns all the existing accounts
*
*/
public cosmos.auth.v1beta1.QueryOuterClass.QueryAccountsResponse accounts(cosmos.auth.v1beta1.QueryOuterClass.QueryAccountsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAccountsMethod(), getCallOptions(), request);
}
/**
*
* Account returns account details based on address.
*
*/
public cosmos.auth.v1beta1.QueryOuterClass.QueryAccountResponse account(cosmos.auth.v1beta1.QueryOuterClass.QueryAccountRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAccountMethod(), getCallOptions(), request);
}
/**
*
* Params queries all parameters.
*
*/
public cosmos.auth.v1beta1.QueryOuterClass.QueryParamsResponse params(cosmos.auth.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);
}
/**
*
* Accounts returns all the existing accounts
*
*/
public com.google.common.util.concurrent.ListenableFuture accounts(
cosmos.auth.v1beta1.QueryOuterClass.QueryAccountsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getAccountsMethod(), getCallOptions()), request);
}
/**
*
* Account returns account details based on address.
*
*/
public com.google.common.util.concurrent.ListenableFuture account(
cosmos.auth.v1beta1.QueryOuterClass.QueryAccountRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getAccountMethod(), getCallOptions()), request);
}
/**
*
* Params queries all parameters.
*
*/
public com.google.common.util.concurrent.ListenableFuture params(
cosmos.auth.v1beta1.QueryOuterClass.QueryParamsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getParamsMethod(), getCallOptions()), request);
}
}
private static final int METHODID_ACCOUNTS = 0;
private static final int METHODID_ACCOUNT = 1;
private static final int METHODID_PARAMS = 2;
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_ACCOUNTS:
serviceImpl.accounts((cosmos.auth.v1beta1.QueryOuterClass.QueryAccountsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ACCOUNT:
serviceImpl.account((cosmos.auth.v1beta1.QueryOuterClass.QueryAccountRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PARAMS:
serviceImpl.params((cosmos.auth.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.auth.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(getAccountsMethod())
.addMethod(getAccountMethod())
.addMethod(getParamsMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy