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

proto.cosmos.bank.v1beta1.MsgGrpc Maven / Gradle / Ivy

There is a newer version: 0.13
Show newest version
package proto.cosmos.bank.v1beta1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Msg defines the bank Msg service.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.35.0)", comments = "Source: cosmos/bank/v1beta1/tx.proto") public final class MsgGrpc { private MsgGrpc() {} public static final String SERVICE_NAME = "cosmos.bank.v1beta1.Msg"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getSendMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Send", requestType = Tx.MsgSend.class, responseType = Tx.MsgSendResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSendMethod() { io.grpc.MethodDescriptor getSendMethod; if ((getSendMethod = MsgGrpc.getSendMethod) == null) { synchronized (MsgGrpc.class) { if ((getSendMethod = MsgGrpc.getSendMethod) == null) { MsgGrpc.getSendMethod = getSendMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Send")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( Tx.MsgSend.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( Tx.MsgSendResponse.getDefaultInstance())) .setSchemaDescriptor(new MsgMethodDescriptorSupplier("Send")) .build(); } } } return getSendMethod; } private static volatile io.grpc.MethodDescriptor getMultiSendMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "MultiSend", requestType = Tx.MsgMultiSend.class, responseType = Tx.MsgMultiSendResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getMultiSendMethod() { io.grpc.MethodDescriptor getMultiSendMethod; if ((getMultiSendMethod = MsgGrpc.getMultiSendMethod) == null) { synchronized (MsgGrpc.class) { if ((getMultiSendMethod = MsgGrpc.getMultiSendMethod) == null) { MsgGrpc.getMultiSendMethod = getMultiSendMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MultiSend")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( Tx.MsgMultiSend.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( Tx.MsgMultiSendResponse.getDefaultInstance())) .setSchemaDescriptor(new MsgMethodDescriptorSupplier("MultiSend")) .build(); } } } return getMultiSendMethod; } /** * Creates a new async stub that supports all call types for the service */ public static MsgStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @Override public MsgStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MsgStub(channel, callOptions); } }; return MsgStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static MsgBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @Override public MsgBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MsgBlockingStub(channel, callOptions); } }; return MsgBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static MsgFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @Override public MsgFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MsgFutureStub(channel, callOptions); } }; return MsgFutureStub.newStub(factory, channel); } /** *
   * Msg defines the bank Msg service.
   * 
*/ public static abstract class MsgImplBase implements io.grpc.BindableService { /** *
     * Send defines a method for sending coins from one account to another account.
     * 
*/ public void send(Tx.MsgSend request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendMethod(), responseObserver); } /** *
     * MultiSend defines a method for sending coins from some accounts to other accounts.
     * 
*/ public void multiSend(Tx.MsgMultiSend request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMultiSendMethod(), responseObserver); } @Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getSendMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< Tx.MsgSend, Tx.MsgSendResponse>( this, METHODID_SEND))) .addMethod( getMultiSendMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< Tx.MsgMultiSend, Tx.MsgMultiSendResponse>( this, METHODID_MULTI_SEND))) .build(); } } /** *
   * Msg defines the bank Msg service.
   * 
*/ public static final class MsgStub extends io.grpc.stub.AbstractAsyncStub { private MsgStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @Override protected MsgStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MsgStub(channel, callOptions); } /** *
     * Send defines a method for sending coins from one account to another account.
     * 
*/ public void send(Tx.MsgSend request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSendMethod(), getCallOptions()), request, responseObserver); } /** *
     * MultiSend defines a method for sending coins from some accounts to other accounts.
     * 
*/ public void multiSend(Tx.MsgMultiSend request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getMultiSendMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Msg defines the bank Msg service.
   * 
*/ public static final class MsgBlockingStub extends io.grpc.stub.AbstractBlockingStub { private MsgBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @Override protected MsgBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MsgBlockingStub(channel, callOptions); } /** *
     * Send defines a method for sending coins from one account to another account.
     * 
*/ public Tx.MsgSendResponse send(Tx.MsgSend request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSendMethod(), getCallOptions(), request); } /** *
     * MultiSend defines a method for sending coins from some accounts to other accounts.
     * 
*/ public Tx.MsgMultiSendResponse multiSend(Tx.MsgMultiSend request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getMultiSendMethod(), getCallOptions(), request); } } /** *
   * Msg defines the bank Msg service.
   * 
*/ public static final class MsgFutureStub extends io.grpc.stub.AbstractFutureStub { private MsgFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @Override protected MsgFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MsgFutureStub(channel, callOptions); } /** *
     * Send defines a method for sending coins from one account to another account.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture send( Tx.MsgSend request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSendMethod(), getCallOptions()), request); } /** *
     * MultiSend defines a method for sending coins from some accounts to other accounts.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture multiSend( Tx.MsgMultiSend request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getMultiSendMethod(), getCallOptions()), request); } } private static final int METHODID_SEND = 0; private static final int METHODID_MULTI_SEND = 1; 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 MsgImplBase serviceImpl; private final int methodId; MethodHandlers(MsgImplBase serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @Override @SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_SEND: serviceImpl.send((Tx.MsgSend) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_MULTI_SEND: serviceImpl.multiSend((Tx.MsgMultiSend) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @Override @SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } private static abstract class MsgBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { MsgBaseDescriptorSupplier() {} @Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return Tx.getDescriptor(); } @Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("Msg"); } } private static final class MsgFileDescriptorSupplier extends MsgBaseDescriptorSupplier { MsgFileDescriptorSupplier() {} } private static final class MsgMethodDescriptorSupplier extends MsgBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; MsgMethodDescriptorSupplier(String methodName) { this.methodName = methodName; } @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 (MsgGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new MsgFileDescriptorSupplier()) .addMethod(getSendMethod()) .addMethod(getMultiSendMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy