games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletServiceGrpc 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.playerwallet;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.49.2)",
comments = "Source: api/playerwallet/rpc.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class PlayerWalletServiceGrpc {
private PlayerWalletServiceGrpc() {}
public static final String SERVICE_NAME = "saga.api.playerwallet.PlayerWalletService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getCreatePlayerWalletMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreatePlayerWallet",
requestType = games.mythical.saga.sdk.proto.api.playerwallet.CreatePlayerWalletRequest.class,
responseType = games.mythical.saga.sdk.proto.common.ReceivedResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreatePlayerWalletMethod() {
io.grpc.MethodDescriptor getCreatePlayerWalletMethod;
if ((getCreatePlayerWalletMethod = PlayerWalletServiceGrpc.getCreatePlayerWalletMethod) == null) {
synchronized (PlayerWalletServiceGrpc.class) {
if ((getCreatePlayerWalletMethod = PlayerWalletServiceGrpc.getCreatePlayerWalletMethod) == null) {
PlayerWalletServiceGrpc.getCreatePlayerWalletMethod = getCreatePlayerWalletMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePlayerWallet"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.playerwallet.CreatePlayerWalletRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.common.ReceivedResponse.getDefaultInstance()))
.setSchemaDescriptor(new PlayerWalletServiceMethodDescriptorSupplier("CreatePlayerWallet"))
.build();
}
}
}
return getCreatePlayerWalletMethod;
}
private static volatile io.grpc.MethodDescriptor getGetPlayerWalletMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetPlayerWallet",
requestType = games.mythical.saga.sdk.proto.api.playerwallet.GetPlayerWalletRequest.class,
responseType = games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProto.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetPlayerWalletMethod() {
io.grpc.MethodDescriptor getGetPlayerWalletMethod;
if ((getGetPlayerWalletMethod = PlayerWalletServiceGrpc.getGetPlayerWalletMethod) == null) {
synchronized (PlayerWalletServiceGrpc.class) {
if ((getGetPlayerWalletMethod = PlayerWalletServiceGrpc.getGetPlayerWalletMethod) == null) {
PlayerWalletServiceGrpc.getGetPlayerWalletMethod = getGetPlayerWalletMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPlayerWallet"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.playerwallet.GetPlayerWalletRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProto.getDefaultInstance()))
.setSchemaDescriptor(new PlayerWalletServiceMethodDescriptorSupplier("GetPlayerWallet"))
.build();
}
}
}
return getGetPlayerWalletMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static PlayerWalletServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public PlayerWalletServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PlayerWalletServiceStub(channel, callOptions);
}
};
return PlayerWalletServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static PlayerWalletServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public PlayerWalletServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PlayerWalletServiceBlockingStub(channel, callOptions);
}
};
return PlayerWalletServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static PlayerWalletServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public PlayerWalletServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PlayerWalletServiceFutureStub(channel, callOptions);
}
};
return PlayerWalletServiceFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class PlayerWalletServiceImplBase implements io.grpc.BindableService {
/**
*
* Create a Player Wallet
*
*/
public void createPlayerWallet(games.mythical.saga.sdk.proto.api.playerwallet.CreatePlayerWalletRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePlayerWalletMethod(), responseObserver);
}
/**
*
* Get a Player Wallet
*
*/
public void getPlayerWallet(games.mythical.saga.sdk.proto.api.playerwallet.GetPlayerWalletRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPlayerWalletMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreatePlayerWalletMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
games.mythical.saga.sdk.proto.api.playerwallet.CreatePlayerWalletRequest,
games.mythical.saga.sdk.proto.common.ReceivedResponse>(
this, METHODID_CREATE_PLAYER_WALLET)))
.addMethod(
getGetPlayerWalletMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
games.mythical.saga.sdk.proto.api.playerwallet.GetPlayerWalletRequest,
games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProto>(
this, METHODID_GET_PLAYER_WALLET)))
.build();
}
}
/**
*/
public static final class PlayerWalletServiceStub extends io.grpc.stub.AbstractAsyncStub {
private PlayerWalletServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected PlayerWalletServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PlayerWalletServiceStub(channel, callOptions);
}
/**
*
* Create a Player Wallet
*
*/
public void createPlayerWallet(games.mythical.saga.sdk.proto.api.playerwallet.CreatePlayerWalletRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreatePlayerWalletMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Get a Player Wallet
*
*/
public void getPlayerWallet(games.mythical.saga.sdk.proto.api.playerwallet.GetPlayerWalletRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetPlayerWalletMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class PlayerWalletServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private PlayerWalletServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected PlayerWalletServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PlayerWalletServiceBlockingStub(channel, callOptions);
}
/**
*
* Create a Player Wallet
*
*/
public games.mythical.saga.sdk.proto.common.ReceivedResponse createPlayerWallet(games.mythical.saga.sdk.proto.api.playerwallet.CreatePlayerWalletRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreatePlayerWalletMethod(), getCallOptions(), request);
}
/**
*
* Get a Player Wallet
*
*/
public games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProto getPlayerWallet(games.mythical.saga.sdk.proto.api.playerwallet.GetPlayerWalletRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetPlayerWalletMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class PlayerWalletServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private PlayerWalletServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected PlayerWalletServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PlayerWalletServiceFutureStub(channel, callOptions);
}
/**
*
* Create a Player Wallet
*
*/
public com.google.common.util.concurrent.ListenableFuture createPlayerWallet(
games.mythical.saga.sdk.proto.api.playerwallet.CreatePlayerWalletRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreatePlayerWalletMethod(), getCallOptions()), request);
}
/**
*
* Get a Player Wallet
*
*/
public com.google.common.util.concurrent.ListenableFuture getPlayerWallet(
games.mythical.saga.sdk.proto.api.playerwallet.GetPlayerWalletRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetPlayerWalletMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE_PLAYER_WALLET = 0;
private static final int METHODID_GET_PLAYER_WALLET = 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 PlayerWalletServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(PlayerWalletServiceImplBase 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_CREATE_PLAYER_WALLET:
serviceImpl.createPlayerWallet((games.mythical.saga.sdk.proto.api.playerwallet.CreatePlayerWalletRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_PLAYER_WALLET:
serviceImpl.getPlayerWallet((games.mythical.saga.sdk.proto.api.playerwallet.GetPlayerWalletRequest) 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 PlayerWalletServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
PlayerWalletServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return games.mythical.saga.sdk.proto.api.playerwallet.Rpc.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("PlayerWalletService");
}
}
private static final class PlayerWalletServiceFileDescriptorSupplier
extends PlayerWalletServiceBaseDescriptorSupplier {
PlayerWalletServiceFileDescriptorSupplier() {}
}
private static final class PlayerWalletServiceMethodDescriptorSupplier
extends PlayerWalletServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
PlayerWalletServiceMethodDescriptorSupplier(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 (PlayerWalletServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new PlayerWalletServiceFileDescriptorSupplier())
.addMethod(getCreatePlayerWalletMethod())
.addMethod(getGetPlayerWalletMethod())
.build();
}
}
}
return result;
}
}