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

games.mythical.saga.sdk.proto.streams.StatusStreamGrpc Maven / Gradle / Ivy

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

import static io.grpc.MethodDescriptor.generateFullMethodName;

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

  private StatusStreamGrpc() {}

  public static final String SERVICE_NAME = "saga.rpc.streams.StatusStream";

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

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "StatusStream",
      requestType = games.mythical.saga.sdk.proto.streams.Subscribe.class,
      responseType = games.mythical.saga.sdk.proto.streams.StatusUpdate.class,
      methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
  public static io.grpc.MethodDescriptor getStatusStreamMethod() {
    io.grpc.MethodDescriptor getStatusStreamMethod;
    if ((getStatusStreamMethod = StatusStreamGrpc.getStatusStreamMethod) == null) {
      synchronized (StatusStreamGrpc.class) {
        if ((getStatusStreamMethod = StatusStreamGrpc.getStatusStreamMethod) == null) {
          StatusStreamGrpc.getStatusStreamMethod = getStatusStreamMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StatusStream"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  games.mythical.saga.sdk.proto.streams.Subscribe.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  games.mythical.saga.sdk.proto.streams.StatusUpdate.getDefaultInstance()))
              .setSchemaDescriptor(new StatusStreamMethodDescriptorSupplier("StatusStream"))
              .build();
        }
      }
    }
    return getStatusStreamMethod;
  }

  private static volatile io.grpc.MethodDescriptor getStatusConfirmationMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "StatusConfirmation",
      requestType = games.mythical.saga.sdk.proto.streams.StatusConfirmRequest.class,
      responseType = com.google.protobuf.Empty.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getStatusConfirmationMethod() {
    io.grpc.MethodDescriptor getStatusConfirmationMethod;
    if ((getStatusConfirmationMethod = StatusStreamGrpc.getStatusConfirmationMethod) == null) {
      synchronized (StatusStreamGrpc.class) {
        if ((getStatusConfirmationMethod = StatusStreamGrpc.getStatusConfirmationMethod) == null) {
          StatusStreamGrpc.getStatusConfirmationMethod = getStatusConfirmationMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StatusConfirmation"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  games.mythical.saga.sdk.proto.streams.StatusConfirmRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.google.protobuf.Empty.getDefaultInstance()))
              .setSchemaDescriptor(new StatusStreamMethodDescriptorSupplier("StatusConfirmation"))
              .build();
        }
      }
    }
    return getStatusConfirmationMethod;
  }

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

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

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

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

    /**
     * 
     * Send a call to update the status 
     * 
*/ public void statusStream(games.mythical.saga.sdk.proto.streams.Subscribe request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStatusStreamMethod(), responseObserver); } /** *
     * Get verification of status 
     * 
*/ public void statusConfirmation(games.mythical.saga.sdk.proto.streams.StatusConfirmRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStatusConfirmationMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getStatusStreamMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall( new MethodHandlers< games.mythical.saga.sdk.proto.streams.Subscribe, games.mythical.saga.sdk.proto.streams.StatusUpdate>( this, METHODID_STATUS_STREAM))) .addMethod( getStatusConfirmationMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< games.mythical.saga.sdk.proto.streams.StatusConfirmRequest, com.google.protobuf.Empty>( this, METHODID_STATUS_CONFIRMATION))) .build(); } } /** */ public static final class StatusStreamStub extends io.grpc.stub.AbstractAsyncStub { private StatusStreamStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected StatusStreamStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new StatusStreamStub(channel, callOptions); } /** *
     * Send a call to update the status 
     * 
*/ public void statusStream(games.mythical.saga.sdk.proto.streams.Subscribe request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getStatusStreamMethod(), getCallOptions()), request, responseObserver); } /** *
     * Get verification of status 
     * 
*/ public void statusConfirmation(games.mythical.saga.sdk.proto.streams.StatusConfirmRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getStatusConfirmationMethod(), getCallOptions()), request, responseObserver); } } /** */ public static final class StatusStreamBlockingStub extends io.grpc.stub.AbstractBlockingStub { private StatusStreamBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected StatusStreamBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new StatusStreamBlockingStub(channel, callOptions); } /** *
     * Send a call to update the status 
     * 
*/ public java.util.Iterator statusStream( games.mythical.saga.sdk.proto.streams.Subscribe request) { return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getStatusStreamMethod(), getCallOptions(), request); } /** *
     * Get verification of status 
     * 
*/ public com.google.protobuf.Empty statusConfirmation(games.mythical.saga.sdk.proto.streams.StatusConfirmRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getStatusConfirmationMethod(), getCallOptions(), request); } } /** */ public static final class StatusStreamFutureStub extends io.grpc.stub.AbstractFutureStub { private StatusStreamFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected StatusStreamFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new StatusStreamFutureStub(channel, callOptions); } /** *
     * Get verification of status 
     * 
*/ public com.google.common.util.concurrent.ListenableFuture statusConfirmation( games.mythical.saga.sdk.proto.streams.StatusConfirmRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getStatusConfirmationMethod(), getCallOptions()), request); } } private static final int METHODID_STATUS_STREAM = 0; private static final int METHODID_STATUS_CONFIRMATION = 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 StatusStreamImplBase serviceImpl; private final int methodId; MethodHandlers(StatusStreamImplBase 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_STATUS_STREAM: serviceImpl.statusStream((games.mythical.saga.sdk.proto.streams.Subscribe) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_STATUS_CONFIRMATION: serviceImpl.statusConfirmation((games.mythical.saga.sdk.proto.streams.StatusConfirmRequest) 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 StatusStreamBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { StatusStreamBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return games.mythical.saga.sdk.proto.streams.Stream.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("StatusStream"); } } private static final class StatusStreamFileDescriptorSupplier extends StatusStreamBaseDescriptorSupplier { StatusStreamFileDescriptorSupplier() {} } private static final class StatusStreamMethodDescriptorSupplier extends StatusStreamBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; StatusStreamMethodDescriptorSupplier(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 (StatusStreamGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new StatusStreamFileDescriptorSupplier()) .addMethod(getStatusStreamMethod()) .addMethod(getStatusConfirmationMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy