games.mythical.saga.sdk.proto.api.item.ItemServiceGrpc 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.item;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.49.2)",
comments = "Source: api/item/rpc.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ItemServiceGrpc {
private ItemServiceGrpc() {}
public static final String SERVICE_NAME = "saga.api.item.ItemService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getGetItemMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetItem",
requestType = games.mythical.saga.sdk.proto.api.item.GetItemRequest.class,
responseType = games.mythical.saga.sdk.proto.api.item.ItemProto.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetItemMethod() {
io.grpc.MethodDescriptor getGetItemMethod;
if ((getGetItemMethod = ItemServiceGrpc.getGetItemMethod) == null) {
synchronized (ItemServiceGrpc.class) {
if ((getGetItemMethod = ItemServiceGrpc.getGetItemMethod) == null) {
ItemServiceGrpc.getGetItemMethod = getGetItemMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetItem"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.item.GetItemRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.item.ItemProto.getDefaultInstance()))
.setSchemaDescriptor(new ItemServiceMethodDescriptorSupplier("GetItem"))
.build();
}
}
}
return getGetItemMethod;
}
private static volatile io.grpc.MethodDescriptor getGetItemsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetItems",
requestType = games.mythical.saga.sdk.proto.api.item.GetItemsRequest.class,
responseType = games.mythical.saga.sdk.proto.api.item.ItemsProto.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetItemsMethod() {
io.grpc.MethodDescriptor getGetItemsMethod;
if ((getGetItemsMethod = ItemServiceGrpc.getGetItemsMethod) == null) {
synchronized (ItemServiceGrpc.class) {
if ((getGetItemsMethod = ItemServiceGrpc.getGetItemsMethod) == null) {
ItemServiceGrpc.getGetItemsMethod = getGetItemsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetItems"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.item.GetItemsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.item.ItemsProto.getDefaultInstance()))
.setSchemaDescriptor(new ItemServiceMethodDescriptorSupplier("GetItems"))
.build();
}
}
}
return getGetItemsMethod;
}
private static volatile io.grpc.MethodDescriptor getGetItemsForPlayerMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetItemsForPlayer",
requestType = games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequest.class,
responseType = games.mythical.saga.sdk.proto.api.item.ItemsProto.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetItemsForPlayerMethod() {
io.grpc.MethodDescriptor getGetItemsForPlayerMethod;
if ((getGetItemsForPlayerMethod = ItemServiceGrpc.getGetItemsForPlayerMethod) == null) {
synchronized (ItemServiceGrpc.class) {
if ((getGetItemsForPlayerMethod = ItemServiceGrpc.getGetItemsForPlayerMethod) == null) {
ItemServiceGrpc.getGetItemsForPlayerMethod = getGetItemsForPlayerMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetItemsForPlayer"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.item.ItemsProto.getDefaultInstance()))
.setSchemaDescriptor(new ItemServiceMethodDescriptorSupplier("GetItemsForPlayer"))
.build();
}
}
}
return getGetItemsForPlayerMethod;
}
private static volatile io.grpc.MethodDescriptor getIssueItemMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "IssueItem",
requestType = games.mythical.saga.sdk.proto.api.item.IssueItemRequest.class,
responseType = games.mythical.saga.sdk.proto.common.ReceivedResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getIssueItemMethod() {
io.grpc.MethodDescriptor getIssueItemMethod;
if ((getIssueItemMethod = ItemServiceGrpc.getIssueItemMethod) == null) {
synchronized (ItemServiceGrpc.class) {
if ((getIssueItemMethod = ItemServiceGrpc.getIssueItemMethod) == null) {
ItemServiceGrpc.getIssueItemMethod = getIssueItemMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "IssueItem"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.item.IssueItemRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.common.ReceivedResponse.getDefaultInstance()))
.setSchemaDescriptor(new ItemServiceMethodDescriptorSupplier("IssueItem"))
.build();
}
}
}
return getIssueItemMethod;
}
private static volatile io.grpc.MethodDescriptor getTransferItemMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "TransferItem",
requestType = games.mythical.saga.sdk.proto.api.item.TransferItemRequest.class,
responseType = games.mythical.saga.sdk.proto.common.ReceivedResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getTransferItemMethod() {
io.grpc.MethodDescriptor getTransferItemMethod;
if ((getTransferItemMethod = ItemServiceGrpc.getTransferItemMethod) == null) {
synchronized (ItemServiceGrpc.class) {
if ((getTransferItemMethod = ItemServiceGrpc.getTransferItemMethod) == null) {
ItemServiceGrpc.getTransferItemMethod = getTransferItemMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "TransferItem"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.item.TransferItemRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.common.ReceivedResponse.getDefaultInstance()))
.setSchemaDescriptor(new ItemServiceMethodDescriptorSupplier("TransferItem"))
.build();
}
}
}
return getTransferItemMethod;
}
private static volatile io.grpc.MethodDescriptor getTransferItemBulkMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "TransferItemBulk",
requestType = games.mythical.saga.sdk.proto.api.item.TransferItemBulkRequest.class,
responseType = games.mythical.saga.sdk.proto.common.ReceivedResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getTransferItemBulkMethod() {
io.grpc.MethodDescriptor getTransferItemBulkMethod;
if ((getTransferItemBulkMethod = ItemServiceGrpc.getTransferItemBulkMethod) == null) {
synchronized (ItemServiceGrpc.class) {
if ((getTransferItemBulkMethod = ItemServiceGrpc.getTransferItemBulkMethod) == null) {
ItemServiceGrpc.getTransferItemBulkMethod = getTransferItemBulkMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "TransferItemBulk"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.item.TransferItemBulkRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.common.ReceivedResponse.getDefaultInstance()))
.setSchemaDescriptor(new ItemServiceMethodDescriptorSupplier("TransferItemBulk"))
.build();
}
}
}
return getTransferItemBulkMethod;
}
private static volatile io.grpc.MethodDescriptor getBurnItemMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "BurnItem",
requestType = games.mythical.saga.sdk.proto.api.item.BurnItemRequest.class,
responseType = games.mythical.saga.sdk.proto.common.ReceivedResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getBurnItemMethod() {
io.grpc.MethodDescriptor getBurnItemMethod;
if ((getBurnItemMethod = ItemServiceGrpc.getBurnItemMethod) == null) {
synchronized (ItemServiceGrpc.class) {
if ((getBurnItemMethod = ItemServiceGrpc.getBurnItemMethod) == null) {
ItemServiceGrpc.getBurnItemMethod = getBurnItemMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "BurnItem"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.item.BurnItemRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.common.ReceivedResponse.getDefaultInstance()))
.setSchemaDescriptor(new ItemServiceMethodDescriptorSupplier("BurnItem"))
.build();
}
}
}
return getBurnItemMethod;
}
private static volatile io.grpc.MethodDescriptor getDepositItemMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DepositItem",
requestType = games.mythical.saga.sdk.proto.api.item.DepositItemRequest.class,
responseType = games.mythical.saga.sdk.proto.common.ReceivedResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDepositItemMethod() {
io.grpc.MethodDescriptor getDepositItemMethod;
if ((getDepositItemMethod = ItemServiceGrpc.getDepositItemMethod) == null) {
synchronized (ItemServiceGrpc.class) {
if ((getDepositItemMethod = ItemServiceGrpc.getDepositItemMethod) == null) {
ItemServiceGrpc.getDepositItemMethod = getDepositItemMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DepositItem"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.api.item.DepositItemRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
games.mythical.saga.sdk.proto.common.ReceivedResponse.getDefaultInstance()))
.setSchemaDescriptor(new ItemServiceMethodDescriptorSupplier("DepositItem"))
.build();
}
}
}
return getDepositItemMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static ItemServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ItemServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ItemServiceStub(channel, callOptions);
}
};
return ItemServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static ItemServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ItemServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ItemServiceBlockingStub(channel, callOptions);
}
};
return ItemServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static ItemServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ItemServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ItemServiceFutureStub(channel, callOptions);
}
};
return ItemServiceFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class ItemServiceImplBase implements io.grpc.BindableService {
/**
*
* Get an item
*
*/
public void getItem(games.mythical.saga.sdk.proto.api.item.GetItemRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetItemMethod(), responseObserver);
}
/**
*
* Get items based on filters
*
*/
public void getItems(games.mythical.saga.sdk.proto.api.item.GetItemsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetItemsMethod(), responseObserver);
}
/**
*
* Get all Items for a player
*
*/
public void getItemsForPlayer(games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetItemsForPlayerMethod(), responseObserver);
}
/**
*
* Issue an Item
*
*/
public void issueItem(games.mythical.saga.sdk.proto.api.item.IssueItemRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getIssueItemMethod(), responseObserver);
}
/**
*
* Transfer Item between users
*
*/
public void transferItem(games.mythical.saga.sdk.proto.api.item.TransferItemRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTransferItemMethod(), responseObserver);
}
/**
*
* Transfer Items between users
*
*/
public void transferItemBulk(games.mythical.saga.sdk.proto.api.item.TransferItemBulkRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTransferItemBulkMethod(), responseObserver);
}
/**
*
* Burn an Item
*
*/
public void burnItem(games.mythical.saga.sdk.proto.api.item.BurnItemRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBurnItemMethod(), responseObserver);
}
/**
*
* Deposit an Item
*
*/
public void depositItem(games.mythical.saga.sdk.proto.api.item.DepositItemRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDepositItemMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetItemMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
games.mythical.saga.sdk.proto.api.item.GetItemRequest,
games.mythical.saga.sdk.proto.api.item.ItemProto>(
this, METHODID_GET_ITEM)))
.addMethod(
getGetItemsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
games.mythical.saga.sdk.proto.api.item.GetItemsRequest,
games.mythical.saga.sdk.proto.api.item.ItemsProto>(
this, METHODID_GET_ITEMS)))
.addMethod(
getGetItemsForPlayerMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequest,
games.mythical.saga.sdk.proto.api.item.ItemsProto>(
this, METHODID_GET_ITEMS_FOR_PLAYER)))
.addMethod(
getIssueItemMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
games.mythical.saga.sdk.proto.api.item.IssueItemRequest,
games.mythical.saga.sdk.proto.common.ReceivedResponse>(
this, METHODID_ISSUE_ITEM)))
.addMethod(
getTransferItemMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
games.mythical.saga.sdk.proto.api.item.TransferItemRequest,
games.mythical.saga.sdk.proto.common.ReceivedResponse>(
this, METHODID_TRANSFER_ITEM)))
.addMethod(
getTransferItemBulkMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
games.mythical.saga.sdk.proto.api.item.TransferItemBulkRequest,
games.mythical.saga.sdk.proto.common.ReceivedResponse>(
this, METHODID_TRANSFER_ITEM_BULK)))
.addMethod(
getBurnItemMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
games.mythical.saga.sdk.proto.api.item.BurnItemRequest,
games.mythical.saga.sdk.proto.common.ReceivedResponse>(
this, METHODID_BURN_ITEM)))
.addMethod(
getDepositItemMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
games.mythical.saga.sdk.proto.api.item.DepositItemRequest,
games.mythical.saga.sdk.proto.common.ReceivedResponse>(
this, METHODID_DEPOSIT_ITEM)))
.build();
}
}
/**
*/
public static final class ItemServiceStub extends io.grpc.stub.AbstractAsyncStub {
private ItemServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ItemServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ItemServiceStub(channel, callOptions);
}
/**
*
* Get an item
*
*/
public void getItem(games.mythical.saga.sdk.proto.api.item.GetItemRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetItemMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Get items based on filters
*
*/
public void getItems(games.mythical.saga.sdk.proto.api.item.GetItemsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetItemsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Get all Items for a player
*
*/
public void getItemsForPlayer(games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetItemsForPlayerMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Issue an Item
*
*/
public void issueItem(games.mythical.saga.sdk.proto.api.item.IssueItemRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getIssueItemMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Transfer Item between users
*
*/
public void transferItem(games.mythical.saga.sdk.proto.api.item.TransferItemRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getTransferItemMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Transfer Items between users
*
*/
public void transferItemBulk(games.mythical.saga.sdk.proto.api.item.TransferItemBulkRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getTransferItemBulkMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Burn an Item
*
*/
public void burnItem(games.mythical.saga.sdk.proto.api.item.BurnItemRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getBurnItemMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Deposit an Item
*
*/
public void depositItem(games.mythical.saga.sdk.proto.api.item.DepositItemRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDepositItemMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class ItemServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private ItemServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ItemServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ItemServiceBlockingStub(channel, callOptions);
}
/**
*
* Get an item
*
*/
public games.mythical.saga.sdk.proto.api.item.ItemProto getItem(games.mythical.saga.sdk.proto.api.item.GetItemRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetItemMethod(), getCallOptions(), request);
}
/**
*
* Get items based on filters
*
*/
public games.mythical.saga.sdk.proto.api.item.ItemsProto getItems(games.mythical.saga.sdk.proto.api.item.GetItemsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetItemsMethod(), getCallOptions(), request);
}
/**
*
* Get all Items for a player
*
*/
public games.mythical.saga.sdk.proto.api.item.ItemsProto getItemsForPlayer(games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetItemsForPlayerMethod(), getCallOptions(), request);
}
/**
*
* Issue an Item
*
*/
public games.mythical.saga.sdk.proto.common.ReceivedResponse issueItem(games.mythical.saga.sdk.proto.api.item.IssueItemRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getIssueItemMethod(), getCallOptions(), request);
}
/**
*
* Transfer Item between users
*
*/
public games.mythical.saga.sdk.proto.common.ReceivedResponse transferItem(games.mythical.saga.sdk.proto.api.item.TransferItemRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getTransferItemMethod(), getCallOptions(), request);
}
/**
*
* Transfer Items between users
*
*/
public games.mythical.saga.sdk.proto.common.ReceivedResponse transferItemBulk(games.mythical.saga.sdk.proto.api.item.TransferItemBulkRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getTransferItemBulkMethod(), getCallOptions(), request);
}
/**
*
* Burn an Item
*
*/
public games.mythical.saga.sdk.proto.common.ReceivedResponse burnItem(games.mythical.saga.sdk.proto.api.item.BurnItemRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getBurnItemMethod(), getCallOptions(), request);
}
/**
*
* Deposit an Item
*
*/
public games.mythical.saga.sdk.proto.common.ReceivedResponse depositItem(games.mythical.saga.sdk.proto.api.item.DepositItemRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDepositItemMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class ItemServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private ItemServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ItemServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ItemServiceFutureStub(channel, callOptions);
}
/**
*
* Get an item
*
*/
public com.google.common.util.concurrent.ListenableFuture getItem(
games.mythical.saga.sdk.proto.api.item.GetItemRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetItemMethod(), getCallOptions()), request);
}
/**
*
* Get items based on filters
*
*/
public com.google.common.util.concurrent.ListenableFuture getItems(
games.mythical.saga.sdk.proto.api.item.GetItemsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetItemsMethod(), getCallOptions()), request);
}
/**
*
* Get all Items for a player
*
*/
public com.google.common.util.concurrent.ListenableFuture getItemsForPlayer(
games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetItemsForPlayerMethod(), getCallOptions()), request);
}
/**
*
* Issue an Item
*
*/
public com.google.common.util.concurrent.ListenableFuture issueItem(
games.mythical.saga.sdk.proto.api.item.IssueItemRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getIssueItemMethod(), getCallOptions()), request);
}
/**
*
* Transfer Item between users
*
*/
public com.google.common.util.concurrent.ListenableFuture transferItem(
games.mythical.saga.sdk.proto.api.item.TransferItemRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getTransferItemMethod(), getCallOptions()), request);
}
/**
*
* Transfer Items between users
*
*/
public com.google.common.util.concurrent.ListenableFuture transferItemBulk(
games.mythical.saga.sdk.proto.api.item.TransferItemBulkRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getTransferItemBulkMethod(), getCallOptions()), request);
}
/**
*
* Burn an Item
*
*/
public com.google.common.util.concurrent.ListenableFuture burnItem(
games.mythical.saga.sdk.proto.api.item.BurnItemRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getBurnItemMethod(), getCallOptions()), request);
}
/**
*
* Deposit an Item
*
*/
public com.google.common.util.concurrent.ListenableFuture depositItem(
games.mythical.saga.sdk.proto.api.item.DepositItemRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDepositItemMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_ITEM = 0;
private static final int METHODID_GET_ITEMS = 1;
private static final int METHODID_GET_ITEMS_FOR_PLAYER = 2;
private static final int METHODID_ISSUE_ITEM = 3;
private static final int METHODID_TRANSFER_ITEM = 4;
private static final int METHODID_TRANSFER_ITEM_BULK = 5;
private static final int METHODID_BURN_ITEM = 6;
private static final int METHODID_DEPOSIT_ITEM = 7;
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 ItemServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(ItemServiceImplBase 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_GET_ITEM:
serviceImpl.getItem((games.mythical.saga.sdk.proto.api.item.GetItemRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_ITEMS:
serviceImpl.getItems((games.mythical.saga.sdk.proto.api.item.GetItemsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_ITEMS_FOR_PLAYER:
serviceImpl.getItemsForPlayer((games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ISSUE_ITEM:
serviceImpl.issueItem((games.mythical.saga.sdk.proto.api.item.IssueItemRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_TRANSFER_ITEM:
serviceImpl.transferItem((games.mythical.saga.sdk.proto.api.item.TransferItemRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_TRANSFER_ITEM_BULK:
serviceImpl.transferItemBulk((games.mythical.saga.sdk.proto.api.item.TransferItemBulkRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_BURN_ITEM:
serviceImpl.burnItem((games.mythical.saga.sdk.proto.api.item.BurnItemRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DEPOSIT_ITEM:
serviceImpl.depositItem((games.mythical.saga.sdk.proto.api.item.DepositItemRequest) 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 ItemServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
ItemServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return games.mythical.saga.sdk.proto.api.item.Rpc.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("ItemService");
}
}
private static final class ItemServiceFileDescriptorSupplier
extends ItemServiceBaseDescriptorSupplier {
ItemServiceFileDescriptorSupplier() {}
}
private static final class ItemServiceMethodDescriptorSupplier
extends ItemServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
ItemServiceMethodDescriptorSupplier(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 (ItemServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new ItemServiceFileDescriptorSupplier())
.addMethod(getGetItemMethod())
.addMethod(getGetItemsMethod())
.addMethod(getGetItemsForPlayerMethod())
.addMethod(getIssueItemMethod())
.addMethod(getTransferItemMethod())
.addMethod(getTransferItemBulkMethod())
.addMethod(getBurnItemMethod())
.addMethod(getDepositItemMethod())
.build();
}
}
}
return result;
}
}