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

cosmos.tx.v1beta1.ServiceGrpc Maven / Gradle / Ivy

package cosmos.tx.v1beta1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Service defines a gRPC service for interacting with transactions.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.40.1)", comments = "Source: cosmos/tx/v1beta1/service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ServiceGrpc { private ServiceGrpc() {} public static final String SERVICE_NAME = "cosmos.tx.v1beta1.Service"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getSimulateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Simulate", requestType = cosmos.tx.v1beta1.ServiceOuterClass.SimulateRequest.class, responseType = cosmos.tx.v1beta1.ServiceOuterClass.SimulateResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSimulateMethod() { io.grpc.MethodDescriptor getSimulateMethod; if ((getSimulateMethod = ServiceGrpc.getSimulateMethod) == null) { synchronized (ServiceGrpc.class) { if ((getSimulateMethod = ServiceGrpc.getSimulateMethod) == null) { ServiceGrpc.getSimulateMethod = getSimulateMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Simulate")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.tx.v1beta1.ServiceOuterClass.SimulateRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.tx.v1beta1.ServiceOuterClass.SimulateResponse.getDefaultInstance())) .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("Simulate")) .build(); } } } return getSimulateMethod; } private static volatile io.grpc.MethodDescriptor getGetTxMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetTx", requestType = cosmos.tx.v1beta1.ServiceOuterClass.GetTxRequest.class, responseType = cosmos.tx.v1beta1.ServiceOuterClass.GetTxResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetTxMethod() { io.grpc.MethodDescriptor getGetTxMethod; if ((getGetTxMethod = ServiceGrpc.getGetTxMethod) == null) { synchronized (ServiceGrpc.class) { if ((getGetTxMethod = ServiceGrpc.getGetTxMethod) == null) { ServiceGrpc.getGetTxMethod = getGetTxMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTx")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.tx.v1beta1.ServiceOuterClass.GetTxRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.tx.v1beta1.ServiceOuterClass.GetTxResponse.getDefaultInstance())) .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetTx")) .build(); } } } return getGetTxMethod; } private static volatile io.grpc.MethodDescriptor getBroadcastTxMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BroadcastTx", requestType = cosmos.tx.v1beta1.ServiceOuterClass.BroadcastTxRequest.class, responseType = cosmos.tx.v1beta1.ServiceOuterClass.BroadcastTxResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getBroadcastTxMethod() { io.grpc.MethodDescriptor getBroadcastTxMethod; if ((getBroadcastTxMethod = ServiceGrpc.getBroadcastTxMethod) == null) { synchronized (ServiceGrpc.class) { if ((getBroadcastTxMethod = ServiceGrpc.getBroadcastTxMethod) == null) { ServiceGrpc.getBroadcastTxMethod = getBroadcastTxMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BroadcastTx")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.tx.v1beta1.ServiceOuterClass.BroadcastTxRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.tx.v1beta1.ServiceOuterClass.BroadcastTxResponse.getDefaultInstance())) .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("BroadcastTx")) .build(); } } } return getBroadcastTxMethod; } private static volatile io.grpc.MethodDescriptor getGetTxsEventMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetTxsEvent", requestType = cosmos.tx.v1beta1.ServiceOuterClass.GetTxsEventRequest.class, responseType = cosmos.tx.v1beta1.ServiceOuterClass.GetTxsEventResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetTxsEventMethod() { io.grpc.MethodDescriptor getGetTxsEventMethod; if ((getGetTxsEventMethod = ServiceGrpc.getGetTxsEventMethod) == null) { synchronized (ServiceGrpc.class) { if ((getGetTxsEventMethod = ServiceGrpc.getGetTxsEventMethod) == null) { ServiceGrpc.getGetTxsEventMethod = getGetTxsEventMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTxsEvent")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.tx.v1beta1.ServiceOuterClass.GetTxsEventRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.tx.v1beta1.ServiceOuterClass.GetTxsEventResponse.getDefaultInstance())) .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetTxsEvent")) .build(); } } } return getGetTxsEventMethod; } /** * Creates a new async stub that supports all call types for the service */ public static ServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ServiceStub(channel, callOptions); } }; return ServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static ServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ServiceBlockingStub(channel, callOptions); } }; return ServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static ServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ServiceFutureStub(channel, callOptions); } }; return ServiceFutureStub.newStub(factory, channel); } /** *
   * Service defines a gRPC service for interacting with transactions.
   * 
*/ public static abstract class ServiceImplBase implements io.grpc.BindableService { /** *
     * Simulate simulates executing a transaction for estimating gas usage.
     * 
*/ public void simulate(cosmos.tx.v1beta1.ServiceOuterClass.SimulateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSimulateMethod(), responseObserver); } /** *
     * GetTx fetches a tx by hash.
     * 
*/ public void getTx(cosmos.tx.v1beta1.ServiceOuterClass.GetTxRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTxMethod(), responseObserver); } /** *
     * BroadcastTx broadcast transaction.
     * 
*/ public void broadcastTx(cosmos.tx.v1beta1.ServiceOuterClass.BroadcastTxRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBroadcastTxMethod(), responseObserver); } /** *
     * GetTxsEvent fetches txs by event.
     * 
*/ public void getTxsEvent(cosmos.tx.v1beta1.ServiceOuterClass.GetTxsEventRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTxsEventMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getSimulateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cosmos.tx.v1beta1.ServiceOuterClass.SimulateRequest, cosmos.tx.v1beta1.ServiceOuterClass.SimulateResponse>( this, METHODID_SIMULATE))) .addMethod( getGetTxMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cosmos.tx.v1beta1.ServiceOuterClass.GetTxRequest, cosmos.tx.v1beta1.ServiceOuterClass.GetTxResponse>( this, METHODID_GET_TX))) .addMethod( getBroadcastTxMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cosmos.tx.v1beta1.ServiceOuterClass.BroadcastTxRequest, cosmos.tx.v1beta1.ServiceOuterClass.BroadcastTxResponse>( this, METHODID_BROADCAST_TX))) .addMethod( getGetTxsEventMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cosmos.tx.v1beta1.ServiceOuterClass.GetTxsEventRequest, cosmos.tx.v1beta1.ServiceOuterClass.GetTxsEventResponse>( this, METHODID_GET_TXS_EVENT))) .build(); } } /** *
   * Service defines a gRPC service for interacting with transactions.
   * 
*/ public static final class ServiceStub extends io.grpc.stub.AbstractAsyncStub { private ServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ServiceStub(channel, callOptions); } /** *
     * Simulate simulates executing a transaction for estimating gas usage.
     * 
*/ public void simulate(cosmos.tx.v1beta1.ServiceOuterClass.SimulateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSimulateMethod(), getCallOptions()), request, responseObserver); } /** *
     * GetTx fetches a tx by hash.
     * 
*/ public void getTx(cosmos.tx.v1beta1.ServiceOuterClass.GetTxRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetTxMethod(), getCallOptions()), request, responseObserver); } /** *
     * BroadcastTx broadcast transaction.
     * 
*/ public void broadcastTx(cosmos.tx.v1beta1.ServiceOuterClass.BroadcastTxRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBroadcastTxMethod(), getCallOptions()), request, responseObserver); } /** *
     * GetTxsEvent fetches txs by event.
     * 
*/ public void getTxsEvent(cosmos.tx.v1beta1.ServiceOuterClass.GetTxsEventRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetTxsEventMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Service defines a gRPC service for interacting with transactions.
   * 
*/ public static final class ServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private ServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ServiceBlockingStub(channel, callOptions); } /** *
     * Simulate simulates executing a transaction for estimating gas usage.
     * 
*/ public cosmos.tx.v1beta1.ServiceOuterClass.SimulateResponse simulate(cosmos.tx.v1beta1.ServiceOuterClass.SimulateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSimulateMethod(), getCallOptions(), request); } /** *
     * GetTx fetches a tx by hash.
     * 
*/ public cosmos.tx.v1beta1.ServiceOuterClass.GetTxResponse getTx(cosmos.tx.v1beta1.ServiceOuterClass.GetTxRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetTxMethod(), getCallOptions(), request); } /** *
     * BroadcastTx broadcast transaction.
     * 
*/ public cosmos.tx.v1beta1.ServiceOuterClass.BroadcastTxResponse broadcastTx(cosmos.tx.v1beta1.ServiceOuterClass.BroadcastTxRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBroadcastTxMethod(), getCallOptions(), request); } /** *
     * GetTxsEvent fetches txs by event.
     * 
*/ public cosmos.tx.v1beta1.ServiceOuterClass.GetTxsEventResponse getTxsEvent(cosmos.tx.v1beta1.ServiceOuterClass.GetTxsEventRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetTxsEventMethod(), getCallOptions(), request); } } /** *
   * Service defines a gRPC service for interacting with transactions.
   * 
*/ public static final class ServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private ServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ServiceFutureStub(channel, callOptions); } /** *
     * Simulate simulates executing a transaction for estimating gas usage.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture simulate( cosmos.tx.v1beta1.ServiceOuterClass.SimulateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSimulateMethod(), getCallOptions()), request); } /** *
     * GetTx fetches a tx by hash.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getTx( cosmos.tx.v1beta1.ServiceOuterClass.GetTxRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetTxMethod(), getCallOptions()), request); } /** *
     * BroadcastTx broadcast transaction.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture broadcastTx( cosmos.tx.v1beta1.ServiceOuterClass.BroadcastTxRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBroadcastTxMethod(), getCallOptions()), request); } /** *
     * GetTxsEvent fetches txs by event.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getTxsEvent( cosmos.tx.v1beta1.ServiceOuterClass.GetTxsEventRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetTxsEventMethod(), getCallOptions()), request); } } private static final int METHODID_SIMULATE = 0; private static final int METHODID_GET_TX = 1; private static final int METHODID_BROADCAST_TX = 2; private static final int METHODID_GET_TXS_EVENT = 3; 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 ServiceImplBase serviceImpl; private final int methodId; MethodHandlers(ServiceImplBase 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_SIMULATE: serviceImpl.simulate((cosmos.tx.v1beta1.ServiceOuterClass.SimulateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_TX: serviceImpl.getTx((cosmos.tx.v1beta1.ServiceOuterClass.GetTxRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BROADCAST_TX: serviceImpl.broadcastTx((cosmos.tx.v1beta1.ServiceOuterClass.BroadcastTxRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_TXS_EVENT: serviceImpl.getTxsEvent((cosmos.tx.v1beta1.ServiceOuterClass.GetTxsEventRequest) 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 ServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return cosmos.tx.v1beta1.ServiceOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("Service"); } } private static final class ServiceFileDescriptorSupplier extends ServiceBaseDescriptorSupplier { ServiceFileDescriptorSupplier() {} } private static final class ServiceMethodDescriptorSupplier extends ServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; ServiceMethodDescriptorSupplier(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 (ServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ServiceFileDescriptorSupplier()) .addMethod(getSimulateMethod()) .addMethod(getGetTxMethod()) .addMethod(getBroadcastTxMethod()) .addMethod(getGetTxsEventMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy