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

tech.figure.block.api.proto.MarkerServiceGrpc Maven / Gradle / Ivy

The newest version!
package tech.figure.block.api.proto;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.56.0)",
    comments = "Source: marker-service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class MarkerServiceGrpc {

  private MarkerServiceGrpc() {}

  public static final String SERVICE_NAME = "api.MarkerService";

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

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "LatestMarkerState",
      requestType = tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateRequest.class,
      responseType = tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getLatestMarkerStateMethod() {
    io.grpc.MethodDescriptor getLatestMarkerStateMethod;
    if ((getLatestMarkerStateMethod = MarkerServiceGrpc.getLatestMarkerStateMethod) == null) {
      synchronized (MarkerServiceGrpc.class) {
        if ((getLatestMarkerStateMethod = MarkerServiceGrpc.getLatestMarkerStateMethod) == null) {
          MarkerServiceGrpc.getLatestMarkerStateMethod = getLatestMarkerStateMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LatestMarkerState"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MarkerServiceMethodDescriptorSupplier("LatestMarkerState"))
              .build();
        }
      }
    }
    return getLatestMarkerStateMethod;
  }

  private static volatile io.grpc.MethodDescriptor getEarliestMarkerStateMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "EarliestMarkerState",
      requestType = tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateRequest.class,
      responseType = tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getEarliestMarkerStateMethod() {
    io.grpc.MethodDescriptor getEarliestMarkerStateMethod;
    if ((getEarliestMarkerStateMethod = MarkerServiceGrpc.getEarliestMarkerStateMethod) == null) {
      synchronized (MarkerServiceGrpc.class) {
        if ((getEarliestMarkerStateMethod = MarkerServiceGrpc.getEarliestMarkerStateMethod) == null) {
          MarkerServiceGrpc.getEarliestMarkerStateMethod = getEarliestMarkerStateMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EarliestMarkerState"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MarkerServiceMethodDescriptorSupplier("EarliestMarkerState"))
              .build();
        }
      }
    }
    return getEarliestMarkerStateMethod;
  }

  private static volatile io.grpc.MethodDescriptor getLatestMarkerStateForHeightMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "LatestMarkerStateForHeight",
      requestType = tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateForHeightRequest.class,
      responseType = tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateForHeightResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getLatestMarkerStateForHeightMethod() {
    io.grpc.MethodDescriptor getLatestMarkerStateForHeightMethod;
    if ((getLatestMarkerStateForHeightMethod = MarkerServiceGrpc.getLatestMarkerStateForHeightMethod) == null) {
      synchronized (MarkerServiceGrpc.class) {
        if ((getLatestMarkerStateForHeightMethod = MarkerServiceGrpc.getLatestMarkerStateForHeightMethod) == null) {
          MarkerServiceGrpc.getLatestMarkerStateForHeightMethod = getLatestMarkerStateForHeightMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LatestMarkerStateForHeight"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateForHeightRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateForHeightResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MarkerServiceMethodDescriptorSupplier("LatestMarkerStateForHeight"))
              .build();
        }
      }
    }
    return getLatestMarkerStateForHeightMethod;
  }

  private static volatile io.grpc.MethodDescriptor getStreamLatestMarkerStateMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "StreamLatestMarkerState",
      requestType = tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStreamRequest.class,
      responseType = tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
  public static io.grpc.MethodDescriptor getStreamLatestMarkerStateMethod() {
    io.grpc.MethodDescriptor getStreamLatestMarkerStateMethod;
    if ((getStreamLatestMarkerStateMethod = MarkerServiceGrpc.getStreamLatestMarkerStateMethod) == null) {
      synchronized (MarkerServiceGrpc.class) {
        if ((getStreamLatestMarkerStateMethod = MarkerServiceGrpc.getStreamLatestMarkerStateMethod) == null) {
          MarkerServiceGrpc.getStreamLatestMarkerStateMethod = getStreamLatestMarkerStateMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamLatestMarkerState"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStreamRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MarkerServiceMethodDescriptorSupplier("StreamLatestMarkerState"))
              .build();
        }
      }
    }
    return getStreamLatestMarkerStateMethod;
  }

  private static volatile io.grpc.MethodDescriptor getAllMarkerStatesMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "AllMarkerStates",
      requestType = tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesRequest.class,
      responseType = tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getAllMarkerStatesMethod() {
    io.grpc.MethodDescriptor getAllMarkerStatesMethod;
    if ((getAllMarkerStatesMethod = MarkerServiceGrpc.getAllMarkerStatesMethod) == null) {
      synchronized (MarkerServiceGrpc.class) {
        if ((getAllMarkerStatesMethod = MarkerServiceGrpc.getAllMarkerStatesMethod) == null) {
          MarkerServiceGrpc.getAllMarkerStatesMethod = getAllMarkerStatesMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AllMarkerStates"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MarkerServiceMethodDescriptorSupplier("AllMarkerStates"))
              .build();
        }
      }
    }
    return getAllMarkerStatesMethod;
  }

  private static volatile io.grpc.MethodDescriptor getLatestMarkerStatesByAccessMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "LatestMarkerStatesByAccess",
      requestType = tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStatesByAccessRequest.class,
      responseType = tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStatesByAccessResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getLatestMarkerStatesByAccessMethod() {
    io.grpc.MethodDescriptor getLatestMarkerStatesByAccessMethod;
    if ((getLatestMarkerStatesByAccessMethod = MarkerServiceGrpc.getLatestMarkerStatesByAccessMethod) == null) {
      synchronized (MarkerServiceGrpc.class) {
        if ((getLatestMarkerStatesByAccessMethod = MarkerServiceGrpc.getLatestMarkerStatesByAccessMethod) == null) {
          MarkerServiceGrpc.getLatestMarkerStatesByAccessMethod = getLatestMarkerStatesByAccessMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LatestMarkerStatesByAccess"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStatesByAccessRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStatesByAccessResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MarkerServiceMethodDescriptorSupplier("LatestMarkerStatesByAccess"))
              .build();
        }
      }
    }
    return getLatestMarkerStatesByAccessMethod;
  }

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

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

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

  /**
   */
  public interface AsyncService {

    /**
     */
    default void latestMarkerState(tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLatestMarkerStateMethod(), responseObserver);
    }

    /**
     */
    default void earliestMarkerState(tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEarliestMarkerStateMethod(), responseObserver);
    }

    /**
     */
    default void latestMarkerStateForHeight(tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateForHeightRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLatestMarkerStateForHeightMethod(), responseObserver);
    }

    /**
     */
    default void streamLatestMarkerState(tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStreamRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStreamLatestMarkerStateMethod(), responseObserver);
    }

    /**
     */
    default void allMarkerStates(tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAllMarkerStatesMethod(), responseObserver);
    }

    /**
     */
    default void latestMarkerStatesByAccess(tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStatesByAccessRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLatestMarkerStatesByAccessMethod(), responseObserver);
    }
  }

  /**
   * Base class for the server implementation of the service MarkerService.
   */
  public static abstract class MarkerServiceImplBase
      implements io.grpc.BindableService, AsyncService {

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return MarkerServiceGrpc.bindService(this);
    }
  }

  /**
   * A stub to allow clients to do asynchronous rpc calls to service MarkerService.
   */
  public static final class MarkerServiceStub
      extends io.grpc.stub.AbstractAsyncStub {
    private MarkerServiceStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected MarkerServiceStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new MarkerServiceStub(channel, callOptions);
    }

    /**
     */
    public void latestMarkerState(tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getLatestMarkerStateMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void earliestMarkerState(tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getEarliestMarkerStateMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void latestMarkerStateForHeight(tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateForHeightRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getLatestMarkerStateForHeightMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void streamLatestMarkerState(tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStreamRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncServerStreamingCall(
          getChannel().newCall(getStreamLatestMarkerStateMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void allMarkerStates(tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getAllMarkerStatesMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void latestMarkerStatesByAccess(tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStatesByAccessRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getLatestMarkerStatesByAccessMethod(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   * A stub to allow clients to do synchronous rpc calls to service MarkerService.
   */
  public static final class MarkerServiceBlockingStub
      extends io.grpc.stub.AbstractBlockingStub {
    private MarkerServiceBlockingStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected MarkerServiceBlockingStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new MarkerServiceBlockingStub(channel, callOptions);
    }

    /**
     */
    public tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateResponse latestMarkerState(tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getLatestMarkerStateMethod(), getCallOptions(), request);
    }

    /**
     */
    public tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateResponse earliestMarkerState(tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getEarliestMarkerStateMethod(), getCallOptions(), request);
    }

    /**
     */
    public tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateForHeightResponse latestMarkerStateForHeight(tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateForHeightRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getLatestMarkerStateForHeightMethod(), getCallOptions(), request);
    }

    /**
     */
    public java.util.Iterator streamLatestMarkerState(
        tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStreamRequest request) {
      return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
          getChannel(), getStreamLatestMarkerStateMethod(), getCallOptions(), request);
    }

    /**
     */
    public tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesResponse allMarkerStates(tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getAllMarkerStatesMethod(), getCallOptions(), request);
    }

    /**
     */
    public tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStatesByAccessResponse latestMarkerStatesByAccess(tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStatesByAccessRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getLatestMarkerStatesByAccessMethod(), getCallOptions(), request);
    }
  }

  /**
   * A stub to allow clients to do ListenableFuture-style rpc calls to service MarkerService.
   */
  public static final class MarkerServiceFutureStub
      extends io.grpc.stub.AbstractFutureStub {
    private MarkerServiceFutureStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected MarkerServiceFutureStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new MarkerServiceFutureStub(channel, callOptions);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture latestMarkerState(
        tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getLatestMarkerStateMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture earliestMarkerState(
        tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getEarliestMarkerStateMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture latestMarkerStateForHeight(
        tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateForHeightRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getLatestMarkerStateForHeightMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture allMarkerStates(
        tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getAllMarkerStatesMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture latestMarkerStatesByAccess(
        tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStatesByAccessRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getLatestMarkerStatesByAccessMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_LATEST_MARKER_STATE = 0;
  private static final int METHODID_EARLIEST_MARKER_STATE = 1;
  private static final int METHODID_LATEST_MARKER_STATE_FOR_HEIGHT = 2;
  private static final int METHODID_STREAM_LATEST_MARKER_STATE = 3;
  private static final int METHODID_ALL_MARKER_STATES = 4;
  private static final int METHODID_LATEST_MARKER_STATES_BY_ACCESS = 5;

  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 AsyncService serviceImpl;
    private final int methodId;

    MethodHandlers(AsyncService 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_LATEST_MARKER_STATE:
          serviceImpl.latestMarkerState((tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_EARLIEST_MARKER_STATE:
          serviceImpl.earliestMarkerState((tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_LATEST_MARKER_STATE_FOR_HEIGHT:
          serviceImpl.latestMarkerStateForHeight((tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateForHeightRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_STREAM_LATEST_MARKER_STATE:
          serviceImpl.streamLatestMarkerState((tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStreamRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_ALL_MARKER_STATES:
          serviceImpl.allMarkerStates((tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_LATEST_MARKER_STATES_BY_ACCESS:
          serviceImpl.latestMarkerStatesByAccess((tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStatesByAccessRequest) 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();
      }
    }
  }

  public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
    return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
        .addMethod(
          getLatestMarkerStateMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateRequest,
              tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateResponse>(
                service, METHODID_LATEST_MARKER_STATE)))
        .addMethod(
          getEarliestMarkerStateMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateRequest,
              tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateResponse>(
                service, METHODID_EARLIEST_MARKER_STATE)))
        .addMethod(
          getLatestMarkerStateForHeightMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateForHeightRequest,
              tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateForHeightResponse>(
                service, METHODID_LATEST_MARKER_STATE_FOR_HEIGHT)))
        .addMethod(
          getStreamLatestMarkerStateMethod(),
          io.grpc.stub.ServerCalls.asyncServerStreamingCall(
            new MethodHandlers<
              tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStreamRequest,
              tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateResponse>(
                service, METHODID_STREAM_LATEST_MARKER_STATE)))
        .addMethod(
          getAllMarkerStatesMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesRequest,
              tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesResponse>(
                service, METHODID_ALL_MARKER_STATES)))
        .addMethod(
          getLatestMarkerStatesByAccessMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStatesByAccessRequest,
              tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStatesByAccessResponse>(
                service, METHODID_LATEST_MARKER_STATES_BY_ACCESS)))
        .build();
  }

  private static abstract class MarkerServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    MarkerServiceBaseDescriptorSupplier() {}

    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return tech.figure.block.api.proto.MarkerServiceOuterClass.getDescriptor();
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
      return getFileDescriptor().findServiceByName("MarkerService");
    }
  }

  private static final class MarkerServiceFileDescriptorSupplier
      extends MarkerServiceBaseDescriptorSupplier {
    MarkerServiceFileDescriptorSupplier() {}
  }

  private static final class MarkerServiceMethodDescriptorSupplier
      extends MarkerServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    MarkerServiceMethodDescriptorSupplier(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 (MarkerServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new MarkerServiceFileDescriptorSupplier())
              .addMethod(getLatestMarkerStateMethod())
              .addMethod(getEarliestMarkerStateMethod())
              .addMethod(getLatestMarkerStateForHeightMethod())
              .addMethod(getStreamLatestMarkerStateMethod())
              .addMethod(getAllMarkerStatesMethod())
              .addMethod(getLatestMarkerStatesByAccessMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy