
cosmos.base.reflection.v2alpha1.ReflectionServiceGrpc Maven / Gradle / Ivy
package cosmos.base.reflection.v2alpha1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* ReflectionService defines a service for application reflection.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.40.1)",
comments = "Source: cosmos/base/reflection/v2alpha1/reflection.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ReflectionServiceGrpc {
private ReflectionServiceGrpc() {}
public static final String SERVICE_NAME = "cosmos.base.reflection.v2alpha1.ReflectionService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getGetAuthnDescriptorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetAuthnDescriptor",
requestType = cosmos.base.reflection.v2alpha1.Reflection.GetAuthnDescriptorRequest.class,
responseType = cosmos.base.reflection.v2alpha1.Reflection.GetAuthnDescriptorResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetAuthnDescriptorMethod() {
io.grpc.MethodDescriptor getGetAuthnDescriptorMethod;
if ((getGetAuthnDescriptorMethod = ReflectionServiceGrpc.getGetAuthnDescriptorMethod) == null) {
synchronized (ReflectionServiceGrpc.class) {
if ((getGetAuthnDescriptorMethod = ReflectionServiceGrpc.getGetAuthnDescriptorMethod) == null) {
ReflectionServiceGrpc.getGetAuthnDescriptorMethod = getGetAuthnDescriptorMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAuthnDescriptor"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.base.reflection.v2alpha1.Reflection.GetAuthnDescriptorRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.base.reflection.v2alpha1.Reflection.GetAuthnDescriptorResponse.getDefaultInstance()))
.setSchemaDescriptor(new ReflectionServiceMethodDescriptorSupplier("GetAuthnDescriptor"))
.build();
}
}
}
return getGetAuthnDescriptorMethod;
}
private static volatile io.grpc.MethodDescriptor getGetChainDescriptorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetChainDescriptor",
requestType = cosmos.base.reflection.v2alpha1.Reflection.GetChainDescriptorRequest.class,
responseType = cosmos.base.reflection.v2alpha1.Reflection.GetChainDescriptorResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetChainDescriptorMethod() {
io.grpc.MethodDescriptor getGetChainDescriptorMethod;
if ((getGetChainDescriptorMethod = ReflectionServiceGrpc.getGetChainDescriptorMethod) == null) {
synchronized (ReflectionServiceGrpc.class) {
if ((getGetChainDescriptorMethod = ReflectionServiceGrpc.getGetChainDescriptorMethod) == null) {
ReflectionServiceGrpc.getGetChainDescriptorMethod = getGetChainDescriptorMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetChainDescriptor"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.base.reflection.v2alpha1.Reflection.GetChainDescriptorRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.base.reflection.v2alpha1.Reflection.GetChainDescriptorResponse.getDefaultInstance()))
.setSchemaDescriptor(new ReflectionServiceMethodDescriptorSupplier("GetChainDescriptor"))
.build();
}
}
}
return getGetChainDescriptorMethod;
}
private static volatile io.grpc.MethodDescriptor getGetCodecDescriptorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetCodecDescriptor",
requestType = cosmos.base.reflection.v2alpha1.Reflection.GetCodecDescriptorRequest.class,
responseType = cosmos.base.reflection.v2alpha1.Reflection.GetCodecDescriptorResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetCodecDescriptorMethod() {
io.grpc.MethodDescriptor getGetCodecDescriptorMethod;
if ((getGetCodecDescriptorMethod = ReflectionServiceGrpc.getGetCodecDescriptorMethod) == null) {
synchronized (ReflectionServiceGrpc.class) {
if ((getGetCodecDescriptorMethod = ReflectionServiceGrpc.getGetCodecDescriptorMethod) == null) {
ReflectionServiceGrpc.getGetCodecDescriptorMethod = getGetCodecDescriptorMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCodecDescriptor"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.base.reflection.v2alpha1.Reflection.GetCodecDescriptorRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.base.reflection.v2alpha1.Reflection.GetCodecDescriptorResponse.getDefaultInstance()))
.setSchemaDescriptor(new ReflectionServiceMethodDescriptorSupplier("GetCodecDescriptor"))
.build();
}
}
}
return getGetCodecDescriptorMethod;
}
private static volatile io.grpc.MethodDescriptor getGetConfigurationDescriptorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetConfigurationDescriptor",
requestType = cosmos.base.reflection.v2alpha1.Reflection.GetConfigurationDescriptorRequest.class,
responseType = cosmos.base.reflection.v2alpha1.Reflection.GetConfigurationDescriptorResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetConfigurationDescriptorMethod() {
io.grpc.MethodDescriptor getGetConfigurationDescriptorMethod;
if ((getGetConfigurationDescriptorMethod = ReflectionServiceGrpc.getGetConfigurationDescriptorMethod) == null) {
synchronized (ReflectionServiceGrpc.class) {
if ((getGetConfigurationDescriptorMethod = ReflectionServiceGrpc.getGetConfigurationDescriptorMethod) == null) {
ReflectionServiceGrpc.getGetConfigurationDescriptorMethod = getGetConfigurationDescriptorMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfigurationDescriptor"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.base.reflection.v2alpha1.Reflection.GetConfigurationDescriptorRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.base.reflection.v2alpha1.Reflection.GetConfigurationDescriptorResponse.getDefaultInstance()))
.setSchemaDescriptor(new ReflectionServiceMethodDescriptorSupplier("GetConfigurationDescriptor"))
.build();
}
}
}
return getGetConfigurationDescriptorMethod;
}
private static volatile io.grpc.MethodDescriptor getGetQueryServicesDescriptorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetQueryServicesDescriptor",
requestType = cosmos.base.reflection.v2alpha1.Reflection.GetQueryServicesDescriptorRequest.class,
responseType = cosmos.base.reflection.v2alpha1.Reflection.GetQueryServicesDescriptorResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetQueryServicesDescriptorMethod() {
io.grpc.MethodDescriptor getGetQueryServicesDescriptorMethod;
if ((getGetQueryServicesDescriptorMethod = ReflectionServiceGrpc.getGetQueryServicesDescriptorMethod) == null) {
synchronized (ReflectionServiceGrpc.class) {
if ((getGetQueryServicesDescriptorMethod = ReflectionServiceGrpc.getGetQueryServicesDescriptorMethod) == null) {
ReflectionServiceGrpc.getGetQueryServicesDescriptorMethod = getGetQueryServicesDescriptorMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetQueryServicesDescriptor"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.base.reflection.v2alpha1.Reflection.GetQueryServicesDescriptorRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.base.reflection.v2alpha1.Reflection.GetQueryServicesDescriptorResponse.getDefaultInstance()))
.setSchemaDescriptor(new ReflectionServiceMethodDescriptorSupplier("GetQueryServicesDescriptor"))
.build();
}
}
}
return getGetQueryServicesDescriptorMethod;
}
private static volatile io.grpc.MethodDescriptor getGetTxDescriptorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetTxDescriptor",
requestType = cosmos.base.reflection.v2alpha1.Reflection.GetTxDescriptorRequest.class,
responseType = cosmos.base.reflection.v2alpha1.Reflection.GetTxDescriptorResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetTxDescriptorMethod() {
io.grpc.MethodDescriptor getGetTxDescriptorMethod;
if ((getGetTxDescriptorMethod = ReflectionServiceGrpc.getGetTxDescriptorMethod) == null) {
synchronized (ReflectionServiceGrpc.class) {
if ((getGetTxDescriptorMethod = ReflectionServiceGrpc.getGetTxDescriptorMethod) == null) {
ReflectionServiceGrpc.getGetTxDescriptorMethod = getGetTxDescriptorMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTxDescriptor"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.base.reflection.v2alpha1.Reflection.GetTxDescriptorRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.base.reflection.v2alpha1.Reflection.GetTxDescriptorResponse.getDefaultInstance()))
.setSchemaDescriptor(new ReflectionServiceMethodDescriptorSupplier("GetTxDescriptor"))
.build();
}
}
}
return getGetTxDescriptorMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static ReflectionServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ReflectionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ReflectionServiceStub(channel, callOptions);
}
};
return ReflectionServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static ReflectionServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ReflectionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ReflectionServiceBlockingStub(channel, callOptions);
}
};
return ReflectionServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static ReflectionServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ReflectionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ReflectionServiceFutureStub(channel, callOptions);
}
};
return ReflectionServiceFutureStub.newStub(factory, channel);
}
/**
*
* ReflectionService defines a service for application reflection.
*
*/
public static abstract class ReflectionServiceImplBase implements io.grpc.BindableService {
/**
*
* GetAuthnDescriptor returns information on how to authenticate transactions in the application
* NOTE: this RPC is still experimental and might be subject to breaking changes or removal in
* future releases of the cosmos-sdk.
*
*/
public void getAuthnDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetAuthnDescriptorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAuthnDescriptorMethod(), responseObserver);
}
/**
*
* GetChainDescriptor returns the description of the chain
*
*/
public void getChainDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetChainDescriptorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetChainDescriptorMethod(), responseObserver);
}
/**
*
* GetCodecDescriptor returns the descriptor of the codec of the application
*
*/
public void getCodecDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetCodecDescriptorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCodecDescriptorMethod(), responseObserver);
}
/**
*
* GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application
*
*/
public void getConfigurationDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetConfigurationDescriptorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigurationDescriptorMethod(), responseObserver);
}
/**
*
* GetQueryServicesDescriptor returns the available gRPC queryable services of the application
*
*/
public void getQueryServicesDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetQueryServicesDescriptorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetQueryServicesDescriptorMethod(), responseObserver);
}
/**
*
* GetTxDescriptor returns information on the used transaction object and available msgs that can be used
*
*/
public void getTxDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetTxDescriptorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTxDescriptorMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetAuthnDescriptorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.base.reflection.v2alpha1.Reflection.GetAuthnDescriptorRequest,
cosmos.base.reflection.v2alpha1.Reflection.GetAuthnDescriptorResponse>(
this, METHODID_GET_AUTHN_DESCRIPTOR)))
.addMethod(
getGetChainDescriptorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.base.reflection.v2alpha1.Reflection.GetChainDescriptorRequest,
cosmos.base.reflection.v2alpha1.Reflection.GetChainDescriptorResponse>(
this, METHODID_GET_CHAIN_DESCRIPTOR)))
.addMethod(
getGetCodecDescriptorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.base.reflection.v2alpha1.Reflection.GetCodecDescriptorRequest,
cosmos.base.reflection.v2alpha1.Reflection.GetCodecDescriptorResponse>(
this, METHODID_GET_CODEC_DESCRIPTOR)))
.addMethod(
getGetConfigurationDescriptorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.base.reflection.v2alpha1.Reflection.GetConfigurationDescriptorRequest,
cosmos.base.reflection.v2alpha1.Reflection.GetConfigurationDescriptorResponse>(
this, METHODID_GET_CONFIGURATION_DESCRIPTOR)))
.addMethod(
getGetQueryServicesDescriptorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.base.reflection.v2alpha1.Reflection.GetQueryServicesDescriptorRequest,
cosmos.base.reflection.v2alpha1.Reflection.GetQueryServicesDescriptorResponse>(
this, METHODID_GET_QUERY_SERVICES_DESCRIPTOR)))
.addMethod(
getGetTxDescriptorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.base.reflection.v2alpha1.Reflection.GetTxDescriptorRequest,
cosmos.base.reflection.v2alpha1.Reflection.GetTxDescriptorResponse>(
this, METHODID_GET_TX_DESCRIPTOR)))
.build();
}
}
/**
*
* ReflectionService defines a service for application reflection.
*
*/
public static final class ReflectionServiceStub extends io.grpc.stub.AbstractAsyncStub {
private ReflectionServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ReflectionServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ReflectionServiceStub(channel, callOptions);
}
/**
*
* GetAuthnDescriptor returns information on how to authenticate transactions in the application
* NOTE: this RPC is still experimental and might be subject to breaking changes or removal in
* future releases of the cosmos-sdk.
*
*/
public void getAuthnDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetAuthnDescriptorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetAuthnDescriptorMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetChainDescriptor returns the description of the chain
*
*/
public void getChainDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetChainDescriptorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetChainDescriptorMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetCodecDescriptor returns the descriptor of the codec of the application
*
*/
public void getCodecDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetCodecDescriptorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetCodecDescriptorMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application
*
*/
public void getConfigurationDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetConfigurationDescriptorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetConfigurationDescriptorMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetQueryServicesDescriptor returns the available gRPC queryable services of the application
*
*/
public void getQueryServicesDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetQueryServicesDescriptorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetQueryServicesDescriptorMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* GetTxDescriptor returns information on the used transaction object and available msgs that can be used
*
*/
public void getTxDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetTxDescriptorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetTxDescriptorMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* ReflectionService defines a service for application reflection.
*
*/
public static final class ReflectionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private ReflectionServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ReflectionServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ReflectionServiceBlockingStub(channel, callOptions);
}
/**
*
* GetAuthnDescriptor returns information on how to authenticate transactions in the application
* NOTE: this RPC is still experimental and might be subject to breaking changes or removal in
* future releases of the cosmos-sdk.
*
*/
public cosmos.base.reflection.v2alpha1.Reflection.GetAuthnDescriptorResponse getAuthnDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetAuthnDescriptorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetAuthnDescriptorMethod(), getCallOptions(), request);
}
/**
*
* GetChainDescriptor returns the description of the chain
*
*/
public cosmos.base.reflection.v2alpha1.Reflection.GetChainDescriptorResponse getChainDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetChainDescriptorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetChainDescriptorMethod(), getCallOptions(), request);
}
/**
*
* GetCodecDescriptor returns the descriptor of the codec of the application
*
*/
public cosmos.base.reflection.v2alpha1.Reflection.GetCodecDescriptorResponse getCodecDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetCodecDescriptorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetCodecDescriptorMethod(), getCallOptions(), request);
}
/**
*
* GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application
*
*/
public cosmos.base.reflection.v2alpha1.Reflection.GetConfigurationDescriptorResponse getConfigurationDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetConfigurationDescriptorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetConfigurationDescriptorMethod(), getCallOptions(), request);
}
/**
*
* GetQueryServicesDescriptor returns the available gRPC queryable services of the application
*
*/
public cosmos.base.reflection.v2alpha1.Reflection.GetQueryServicesDescriptorResponse getQueryServicesDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetQueryServicesDescriptorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetQueryServicesDescriptorMethod(), getCallOptions(), request);
}
/**
*
* GetTxDescriptor returns information on the used transaction object and available msgs that can be used
*
*/
public cosmos.base.reflection.v2alpha1.Reflection.GetTxDescriptorResponse getTxDescriptor(cosmos.base.reflection.v2alpha1.Reflection.GetTxDescriptorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetTxDescriptorMethod(), getCallOptions(), request);
}
}
/**
*
* ReflectionService defines a service for application reflection.
*
*/
public static final class ReflectionServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private ReflectionServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ReflectionServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ReflectionServiceFutureStub(channel, callOptions);
}
/**
*
* GetAuthnDescriptor returns information on how to authenticate transactions in the application
* NOTE: this RPC is still experimental and might be subject to breaking changes or removal in
* future releases of the cosmos-sdk.
*
*/
public com.google.common.util.concurrent.ListenableFuture getAuthnDescriptor(
cosmos.base.reflection.v2alpha1.Reflection.GetAuthnDescriptorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetAuthnDescriptorMethod(), getCallOptions()), request);
}
/**
*
* GetChainDescriptor returns the description of the chain
*
*/
public com.google.common.util.concurrent.ListenableFuture getChainDescriptor(
cosmos.base.reflection.v2alpha1.Reflection.GetChainDescriptorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetChainDescriptorMethod(), getCallOptions()), request);
}
/**
*
* GetCodecDescriptor returns the descriptor of the codec of the application
*
*/
public com.google.common.util.concurrent.ListenableFuture getCodecDescriptor(
cosmos.base.reflection.v2alpha1.Reflection.GetCodecDescriptorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetCodecDescriptorMethod(), getCallOptions()), request);
}
/**
*
* GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application
*
*/
public com.google.common.util.concurrent.ListenableFuture getConfigurationDescriptor(
cosmos.base.reflection.v2alpha1.Reflection.GetConfigurationDescriptorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetConfigurationDescriptorMethod(), getCallOptions()), request);
}
/**
*
* GetQueryServicesDescriptor returns the available gRPC queryable services of the application
*
*/
public com.google.common.util.concurrent.ListenableFuture getQueryServicesDescriptor(
cosmos.base.reflection.v2alpha1.Reflection.GetQueryServicesDescriptorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetQueryServicesDescriptorMethod(), getCallOptions()), request);
}
/**
*
* GetTxDescriptor returns information on the used transaction object and available msgs that can be used
*
*/
public com.google.common.util.concurrent.ListenableFuture getTxDescriptor(
cosmos.base.reflection.v2alpha1.Reflection.GetTxDescriptorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetTxDescriptorMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_AUTHN_DESCRIPTOR = 0;
private static final int METHODID_GET_CHAIN_DESCRIPTOR = 1;
private static final int METHODID_GET_CODEC_DESCRIPTOR = 2;
private static final int METHODID_GET_CONFIGURATION_DESCRIPTOR = 3;
private static final int METHODID_GET_QUERY_SERVICES_DESCRIPTOR = 4;
private static final int METHODID_GET_TX_DESCRIPTOR = 5;
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 ReflectionServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(ReflectionServiceImplBase 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_GET_AUTHN_DESCRIPTOR:
serviceImpl.getAuthnDescriptor((cosmos.base.reflection.v2alpha1.Reflection.GetAuthnDescriptorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_CHAIN_DESCRIPTOR:
serviceImpl.getChainDescriptor((cosmos.base.reflection.v2alpha1.Reflection.GetChainDescriptorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_CODEC_DESCRIPTOR:
serviceImpl.getCodecDescriptor((cosmos.base.reflection.v2alpha1.Reflection.GetCodecDescriptorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_CONFIGURATION_DESCRIPTOR:
serviceImpl.getConfigurationDescriptor((cosmos.base.reflection.v2alpha1.Reflection.GetConfigurationDescriptorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_QUERY_SERVICES_DESCRIPTOR:
serviceImpl.getQueryServicesDescriptor((cosmos.base.reflection.v2alpha1.Reflection.GetQueryServicesDescriptorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_TX_DESCRIPTOR:
serviceImpl.getTxDescriptor((cosmos.base.reflection.v2alpha1.Reflection.GetTxDescriptorRequest) 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 ReflectionServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
ReflectionServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return cosmos.base.reflection.v2alpha1.Reflection.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("ReflectionService");
}
}
private static final class ReflectionServiceFileDescriptorSupplier
extends ReflectionServiceBaseDescriptorSupplier {
ReflectionServiceFileDescriptorSupplier() {}
}
private static final class ReflectionServiceMethodDescriptorSupplier
extends ReflectionServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
ReflectionServiceMethodDescriptorSupplier(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 (ReflectionServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new ReflectionServiceFileDescriptorSupplier())
.addMethod(getGetAuthnDescriptorMethod())
.addMethod(getGetChainDescriptorMethod())
.addMethod(getGetCodecDescriptorMethod())
.addMethod(getGetConfigurationDescriptorMethod())
.addMethod(getGetQueryServicesDescriptorMethod())
.addMethod(getGetTxDescriptorMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy