
terra.market.v1beta1.MsgGrpc Maven / Gradle / Ivy
package terra.market.v1beta1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* Msg defines the market Msg service.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.40.1)",
comments = "Source: terra/market/v1beta1/tx.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class MsgGrpc {
private MsgGrpc() {}
public static final String SERVICE_NAME = "terra.market.v1beta1.Msg";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getSwapMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Swap",
requestType = terra.market.v1beta1.Tx.MsgSwap.class,
responseType = terra.market.v1beta1.Tx.MsgSwapResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSwapMethod() {
io.grpc.MethodDescriptor getSwapMethod;
if ((getSwapMethod = MsgGrpc.getSwapMethod) == null) {
synchronized (MsgGrpc.class) {
if ((getSwapMethod = MsgGrpc.getSwapMethod) == null) {
MsgGrpc.getSwapMethod = getSwapMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Swap"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
terra.market.v1beta1.Tx.MsgSwap.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
terra.market.v1beta1.Tx.MsgSwapResponse.getDefaultInstance()))
.setSchemaDescriptor(new MsgMethodDescriptorSupplier("Swap"))
.build();
}
}
}
return getSwapMethod;
}
private static volatile io.grpc.MethodDescriptor getSwapSendMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SwapSend",
requestType = terra.market.v1beta1.Tx.MsgSwapSend.class,
responseType = terra.market.v1beta1.Tx.MsgSwapSendResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSwapSendMethod() {
io.grpc.MethodDescriptor getSwapSendMethod;
if ((getSwapSendMethod = MsgGrpc.getSwapSendMethod) == null) {
synchronized (MsgGrpc.class) {
if ((getSwapSendMethod = MsgGrpc.getSwapSendMethod) == null) {
MsgGrpc.getSwapSendMethod = getSwapSendMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SwapSend"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
terra.market.v1beta1.Tx.MsgSwapSend.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
terra.market.v1beta1.Tx.MsgSwapSendResponse.getDefaultInstance()))
.setSchemaDescriptor(new MsgMethodDescriptorSupplier("SwapSend"))
.build();
}
}
}
return getSwapSendMethod;
}
/**
* 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() {
@java.lang.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() {
@java.lang.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() {
@java.lang.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 market Msg service.
*
*/
public static abstract class MsgImplBase implements io.grpc.BindableService {
/**
*
* Swap defines a method for swapping coin from one denom to another
* denom.
*
*/
public void swap(terra.market.v1beta1.Tx.MsgSwap request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSwapMethod(), responseObserver);
}
/**
*
* SwapSend defines a method for swapping and sending coin from a account to other
* account.
*
*/
public void swapSend(terra.market.v1beta1.Tx.MsgSwapSend request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSwapSendMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getSwapMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
terra.market.v1beta1.Tx.MsgSwap,
terra.market.v1beta1.Tx.MsgSwapResponse>(
this, METHODID_SWAP)))
.addMethod(
getSwapSendMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
terra.market.v1beta1.Tx.MsgSwapSend,
terra.market.v1beta1.Tx.MsgSwapSendResponse>(
this, METHODID_SWAP_SEND)))
.build();
}
}
/**
*
* Msg defines the market 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);
}
@java.lang.Override
protected MsgStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MsgStub(channel, callOptions);
}
/**
*
* Swap defines a method for swapping coin from one denom to another
* denom.
*
*/
public void swap(terra.market.v1beta1.Tx.MsgSwap request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSwapMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* SwapSend defines a method for swapping and sending coin from a account to other
* account.
*
*/
public void swapSend(terra.market.v1beta1.Tx.MsgSwapSend request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSwapSendMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* Msg defines the market 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);
}
@java.lang.Override
protected MsgBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MsgBlockingStub(channel, callOptions);
}
/**
*
* Swap defines a method for swapping coin from one denom to another
* denom.
*
*/
public terra.market.v1beta1.Tx.MsgSwapResponse swap(terra.market.v1beta1.Tx.MsgSwap request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSwapMethod(), getCallOptions(), request);
}
/**
*
* SwapSend defines a method for swapping and sending coin from a account to other
* account.
*
*/
public terra.market.v1beta1.Tx.MsgSwapSendResponse swapSend(terra.market.v1beta1.Tx.MsgSwapSend request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSwapSendMethod(), getCallOptions(), request);
}
}
/**
*
* Msg defines the market 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);
}
@java.lang.Override
protected MsgFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MsgFutureStub(channel, callOptions);
}
/**
*
* Swap defines a method for swapping coin from one denom to another
* denom.
*
*/
public com.google.common.util.concurrent.ListenableFuture swap(
terra.market.v1beta1.Tx.MsgSwap request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSwapMethod(), getCallOptions()), request);
}
/**
*
* SwapSend defines a method for swapping and sending coin from a account to other
* account.
*
*/
public com.google.common.util.concurrent.ListenableFuture swapSend(
terra.market.v1beta1.Tx.MsgSwapSend request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSwapSendMethod(), getCallOptions()), request);
}
}
private static final int METHODID_SWAP = 0;
private static final int METHODID_SWAP_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;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_SWAP:
serviceImpl.swap((terra.market.v1beta1.Tx.MsgSwap) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SWAP_SEND:
serviceImpl.swapSend((terra.market.v1beta1.Tx.MsgSwapSend) 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 MsgBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
MsgBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return terra.market.v1beta1.Tx.getDescriptor();
}
@java.lang.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;
}
@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 (MsgGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new MsgFileDescriptorSupplier())
.addMethod(getSwapMethod())
.addMethod(getSwapSendMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy