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

games.mythical.saga.sdk.proto.api.metadata.MetadataServiceGrpc Maven / Gradle / Ivy

There is a newer version: 1.1.30
Show newest version
package games.mythical.saga.sdk.proto.api.metadata;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.49.2)",
    comments = "Source: api/metadata/rpc.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class MetadataServiceGrpc {

  private MetadataServiceGrpc() {}

  public static final String SERVICE_NAME = "saga.api.metadata.MetadataService";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor getUpdateItemMetadataMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "UpdateItemMetadata",
      requestType = games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequest.class,
      responseType = games.mythical.saga.sdk.proto.common.ReceivedResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUpdateItemMetadataMethod() {
    io.grpc.MethodDescriptor getUpdateItemMetadataMethod;
    if ((getUpdateItemMetadataMethod = MetadataServiceGrpc.getUpdateItemMetadataMethod) == null) {
      synchronized (MetadataServiceGrpc.class) {
        if ((getUpdateItemMetadataMethod = MetadataServiceGrpc.getUpdateItemMetadataMethod) == null) {
          MetadataServiceGrpc.getUpdateItemMetadataMethod = getUpdateItemMetadataMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateItemMetadata"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  games.mythical.saga.sdk.proto.common.ReceivedResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MetadataServiceMethodDescriptorSupplier("UpdateItemMetadata"))
              .build();
        }
      }
    }
    return getUpdateItemMetadataMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static MetadataServiceStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public MetadataServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new MetadataServiceStub(channel, callOptions);
        }
      };
    return MetadataServiceStub.newStub(factory, channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static MetadataServiceBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public MetadataServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new MetadataServiceBlockingStub(channel, callOptions);
        }
      };
    return MetadataServiceBlockingStub.newStub(factory, channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static MetadataServiceFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public MetadataServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new MetadataServiceFutureStub(channel, callOptions);
        }
      };
    return MetadataServiceFutureStub.newStub(factory, channel);
  }

  /**
   */
  public static abstract class MetadataServiceImplBase implements io.grpc.BindableService {

    /**
     * 
     * Update an Item's metadata 
     * 
*/ public void updateItemMetadata(games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateItemMetadataMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getUpdateItemMetadataMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequest, games.mythical.saga.sdk.proto.common.ReceivedResponse>( this, METHODID_UPDATE_ITEM_METADATA))) .build(); } } /** */ public static final class MetadataServiceStub extends io.grpc.stub.AbstractAsyncStub { private MetadataServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MetadataServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MetadataServiceStub(channel, callOptions); } /** *
     * Update an Item's metadata 
     * 
*/ public void updateItemMetadata(games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateItemMetadataMethod(), getCallOptions()), request, responseObserver); } } /** */ public static final class MetadataServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private MetadataServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MetadataServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MetadataServiceBlockingStub(channel, callOptions); } /** *
     * Update an Item's metadata 
     * 
*/ public games.mythical.saga.sdk.proto.common.ReceivedResponse updateItemMetadata(games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateItemMetadataMethod(), getCallOptions(), request); } } /** */ public static final class MetadataServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private MetadataServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MetadataServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MetadataServiceFutureStub(channel, callOptions); } /** *
     * Update an Item's metadata 
     * 
*/ public com.google.common.util.concurrent.ListenableFuture updateItemMetadata( games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateItemMetadataMethod(), getCallOptions()), request); } } private static final int METHODID_UPDATE_ITEM_METADATA = 0; 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 MetadataServiceImplBase serviceImpl; private final int methodId; MethodHandlers(MetadataServiceImplBase 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_UPDATE_ITEM_METADATA: serviceImpl.updateItemMetadata((games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequest) 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 MetadataServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { MetadataServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return games.mythical.saga.sdk.proto.api.metadata.Rpc.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("MetadataService"); } } private static final class MetadataServiceFileDescriptorSupplier extends MetadataServiceBaseDescriptorSupplier { MetadataServiceFileDescriptorSupplier() {} } private static final class MetadataServiceMethodDescriptorSupplier extends MetadataServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; MetadataServiceMethodDescriptorSupplier(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 (MetadataServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new MetadataServiceFileDescriptorSupplier()) .addMethod(getUpdateItemMetadataMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy