games.mythical.saga.sdk.proto.api.nftbridge.NftBridgeServiceGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of saga-sdk-proto Show documentation
Show all versions of saga-sdk-proto Show documentation
Saga SDK for Java game servers
package games.mythical.saga.sdk.proto.api.nftbridge;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.49.2)",
comments = "Source: api/nftbridge/rpc.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class NftBridgeServiceGrpc {
private NftBridgeServiceGrpc() {}
public static final String SERVICE_NAME = "saga.api.nftbridge.NftBridgeService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getWithdrawItemMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "WithdrawItem",
requestType = games.mythical.saga.sdk.proto.api.nftbridge.WithdrawItemRequest.class,
responseType = games.mythical.saga.sdk.proto.common.ReceivedResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getWithdrawItemMethod() {
io.grpc.MethodDescriptor getWithdrawItemMethod;
if ((getWithdrawItemMethod = NftBridgeServiceGrpc.getWithdrawItemMethod) == null) {
synchronized (NftBridgeServiceGrpc.class) {
if ((getWithdrawItemMethod = NftBridgeServiceGrpc.getWithdrawItemMethod) == null) {
NftBridgeServiceGrpc.getWithdrawItemMethod = getWithdrawItemMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "WithdrawItem"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.nftbridge.WithdrawItemRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.common.ReceivedResponse.getDefaultInstance()))
.setSchemaDescriptor(new NftBridgeServiceMethodDescriptorSupplier("WithdrawItem"))
.build();
}
}
}
return getWithdrawItemMethod;
}
private static volatile io.grpc.MethodDescriptor getGetBridgeMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBridge",
requestType = games.mythical.saga.sdk.proto.api.nftbridge.GetNftBridgeRequest.class,
responseType = games.mythical.saga.sdk.proto.api.nftbridge.NftBridgeProto.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetBridgeMethod() {
io.grpc.MethodDescriptor getGetBridgeMethod;
if ((getGetBridgeMethod = NftBridgeServiceGrpc.getGetBridgeMethod) == null) {
synchronized (NftBridgeServiceGrpc.class) {
if ((getGetBridgeMethod = NftBridgeServiceGrpc.getGetBridgeMethod) == null) {
NftBridgeServiceGrpc.getGetBridgeMethod = getGetBridgeMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBridge"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.nftbridge.GetNftBridgeRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.nftbridge.NftBridgeProto.getDefaultInstance()))
.setSchemaDescriptor(new NftBridgeServiceMethodDescriptorSupplier("GetBridge"))
.build();
}
}
}
return getGetBridgeMethod;
}
private static volatile io.grpc.MethodDescriptor getGetBridgeQuoteMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBridgeQuote",
requestType = games.mythical.saga.sdk.proto.api.nftbridge.QuoteBridgeNFTRequest.class,
responseType = games.mythical.saga.sdk.proto.api.nftbridge.QuoteBridgeNFTResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetBridgeQuoteMethod() {
io.grpc.MethodDescriptor getGetBridgeQuoteMethod;
if ((getGetBridgeQuoteMethod = NftBridgeServiceGrpc.getGetBridgeQuoteMethod) == null) {
synchronized (NftBridgeServiceGrpc.class) {
if ((getGetBridgeQuoteMethod = NftBridgeServiceGrpc.getGetBridgeQuoteMethod) == null) {
NftBridgeServiceGrpc.getGetBridgeQuoteMethod = getGetBridgeQuoteMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBridgeQuote"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.nftbridge.QuoteBridgeNFTRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.nftbridge.QuoteBridgeNFTResponse.getDefaultInstance()))
.setSchemaDescriptor(new NftBridgeServiceMethodDescriptorSupplier("GetBridgeQuote"))
.build();
}
}
}
return getGetBridgeQuoteMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static NftBridgeServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public NftBridgeServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NftBridgeServiceStub(channel, callOptions);
}
};
return NftBridgeServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static NftBridgeServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public NftBridgeServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NftBridgeServiceBlockingStub(channel, callOptions);
}
};
return NftBridgeServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static NftBridgeServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public NftBridgeServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NftBridgeServiceFutureStub(channel, callOptions);
}
};
return NftBridgeServiceFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class NftBridgeServiceImplBase implements io.grpc.BindableService {
/**
*
* Withdraw an Item
*
*/
public void withdrawItem(games.mythical.saga.sdk.proto.api.nftbridge.WithdrawItemRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWithdrawItemMethod(), responseObserver);
}
/**
*
* Get Bridge
*
*/
public void getBridge(games.mythical.saga.sdk.proto.api.nftbridge.GetNftBridgeRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBridgeMethod(), responseObserver);
}
/**
*
* Get Bridge Quote
*
*/
public void getBridgeQuote(games.mythical.saga.sdk.proto.api.nftbridge.QuoteBridgeNFTRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBridgeQuoteMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getWithdrawItemMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
games.mythical.saga.sdk.proto.api.nftbridge.WithdrawItemRequest,
games.mythical.saga.sdk.proto.common.ReceivedResponse>(
this, METHODID_WITHDRAW_ITEM)))
.addMethod(
getGetBridgeMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
games.mythical.saga.sdk.proto.api.nftbridge.GetNftBridgeRequest,
games.mythical.saga.sdk.proto.api.nftbridge.NftBridgeProto>(
this, METHODID_GET_BRIDGE)))
.addMethod(
getGetBridgeQuoteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
games.mythical.saga.sdk.proto.api.nftbridge.QuoteBridgeNFTRequest,
games.mythical.saga.sdk.proto.api.nftbridge.QuoteBridgeNFTResponse>(
this, METHODID_GET_BRIDGE_QUOTE)))
.build();
}
}
/**
*/
public static final class NftBridgeServiceStub extends io.grpc.stub.AbstractAsyncStub {
private NftBridgeServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected NftBridgeServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NftBridgeServiceStub(channel, callOptions);
}
/**
*
* Withdraw an Item
*
*/
public void withdrawItem(games.mythical.saga.sdk.proto.api.nftbridge.WithdrawItemRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getWithdrawItemMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Get Bridge
*
*/
public void getBridge(games.mythical.saga.sdk.proto.api.nftbridge.GetNftBridgeRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetBridgeMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Get Bridge Quote
*
*/
public void getBridgeQuote(games.mythical.saga.sdk.proto.api.nftbridge.QuoteBridgeNFTRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetBridgeQuoteMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class NftBridgeServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private NftBridgeServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected NftBridgeServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NftBridgeServiceBlockingStub(channel, callOptions);
}
/**
*
* Withdraw an Item
*
*/
public games.mythical.saga.sdk.proto.common.ReceivedResponse withdrawItem(games.mythical.saga.sdk.proto.api.nftbridge.WithdrawItemRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getWithdrawItemMethod(), getCallOptions(), request);
}
/**
*
* Get Bridge
*
*/
public games.mythical.saga.sdk.proto.api.nftbridge.NftBridgeProto getBridge(games.mythical.saga.sdk.proto.api.nftbridge.GetNftBridgeRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetBridgeMethod(), getCallOptions(), request);
}
/**
*
* Get Bridge Quote
*
*/
public games.mythical.saga.sdk.proto.api.nftbridge.QuoteBridgeNFTResponse getBridgeQuote(games.mythical.saga.sdk.proto.api.nftbridge.QuoteBridgeNFTRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetBridgeQuoteMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class NftBridgeServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private NftBridgeServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected NftBridgeServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NftBridgeServiceFutureStub(channel, callOptions);
}
/**
*
* Withdraw an Item
*
*/
public com.google.common.util.concurrent.ListenableFuture withdrawItem(
games.mythical.saga.sdk.proto.api.nftbridge.WithdrawItemRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getWithdrawItemMethod(), getCallOptions()), request);
}
/**
*
* Get Bridge
*
*/
public com.google.common.util.concurrent.ListenableFuture getBridge(
games.mythical.saga.sdk.proto.api.nftbridge.GetNftBridgeRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetBridgeMethod(), getCallOptions()), request);
}
/**
*
* Get Bridge Quote
*
*/
public com.google.common.util.concurrent.ListenableFuture getBridgeQuote(
games.mythical.saga.sdk.proto.api.nftbridge.QuoteBridgeNFTRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetBridgeQuoteMethod(), getCallOptions()), request);
}
}
private static final int METHODID_WITHDRAW_ITEM = 0;
private static final int METHODID_GET_BRIDGE = 1;
private static final int METHODID_GET_BRIDGE_QUOTE = 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 NftBridgeServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(NftBridgeServiceImplBase 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_WITHDRAW_ITEM:
serviceImpl.withdrawItem((games.mythical.saga.sdk.proto.api.nftbridge.WithdrawItemRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_BRIDGE:
serviceImpl.getBridge((games.mythical.saga.sdk.proto.api.nftbridge.GetNftBridgeRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_BRIDGE_QUOTE:
serviceImpl.getBridgeQuote((games.mythical.saga.sdk.proto.api.nftbridge.QuoteBridgeNFTRequest) 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 NftBridgeServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
NftBridgeServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return games.mythical.saga.sdk.proto.api.nftbridge.Rpc.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("NftBridgeService");
}
}
private static final class NftBridgeServiceFileDescriptorSupplier
extends NftBridgeServiceBaseDescriptorSupplier {
NftBridgeServiceFileDescriptorSupplier() {}
}
private static final class NftBridgeServiceMethodDescriptorSupplier
extends NftBridgeServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
NftBridgeServiceMethodDescriptorSupplier(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 (NftBridgeServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new NftBridgeServiceFileDescriptorSupplier())
.addMethod(getWithdrawItemMethod())
.addMethod(getGetBridgeMethod())
.addMethod(getGetBridgeQuoteMethod())
.build();
}
}
}
return result;
}
}