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

types.PolarisRPCServiceGrpc Maven / Gradle / Ivy

The newest version!
package types;

import static io.grpc.MethodDescriptor.generateFullMethodName;

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

  private PolarisRPCServiceGrpc() {}

  public static final String SERVICE_NAME = "types.PolarisRPCService";

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

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "NodeState",
      requestType = types.Rpc.NodeReq.class,
      responseType = types.Rpc.SingleBytes.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getNodeStateMethod() {
    io.grpc.MethodDescriptor getNodeStateMethod;
    if ((getNodeStateMethod = PolarisRPCServiceGrpc.getNodeStateMethod) == null) {
      synchronized (PolarisRPCServiceGrpc.class) {
        if ((getNodeStateMethod = PolarisRPCServiceGrpc.getNodeStateMethod) == null) {
          PolarisRPCServiceGrpc.getNodeStateMethod = getNodeStateMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "NodeState"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  types.Rpc.NodeReq.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  types.Rpc.SingleBytes.getDefaultInstance()))
              .setSchemaDescriptor(new PolarisRPCServiceMethodDescriptorSupplier("NodeState"))
              .build();
        }
      }
    }
    return getNodeStateMethod;
  }

  private static volatile io.grpc.MethodDescriptor getMetricMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Metric",
      requestType = types.Metric.MetricsRequest.class,
      responseType = types.Metric.Metrics.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getMetricMethod() {
    io.grpc.MethodDescriptor getMetricMethod;
    if ((getMetricMethod = PolarisRPCServiceGrpc.getMetricMethod) == null) {
      synchronized (PolarisRPCServiceGrpc.class) {
        if ((getMetricMethod = PolarisRPCServiceGrpc.getMetricMethod) == null) {
          PolarisRPCServiceGrpc.getMetricMethod = getMetricMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Metric"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  types.Metric.MetricsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  types.Metric.Metrics.getDefaultInstance()))
              .setSchemaDescriptor(new PolarisRPCServiceMethodDescriptorSupplier("Metric"))
              .build();
        }
      }
    }
    return getMetricMethod;
  }

  private static volatile io.grpc.MethodDescriptor getCurrentListMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "CurrentList",
      requestType = types.Polarrpc.Paginations.class,
      responseType = types.Polarrpc.PolarisPeerList.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getCurrentListMethod() {
    io.grpc.MethodDescriptor getCurrentListMethod;
    if ((getCurrentListMethod = PolarisRPCServiceGrpc.getCurrentListMethod) == null) {
      synchronized (PolarisRPCServiceGrpc.class) {
        if ((getCurrentListMethod = PolarisRPCServiceGrpc.getCurrentListMethod) == null) {
          PolarisRPCServiceGrpc.getCurrentListMethod = getCurrentListMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CurrentList"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  types.Polarrpc.Paginations.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  types.Polarrpc.PolarisPeerList.getDefaultInstance()))
              .setSchemaDescriptor(new PolarisRPCServiceMethodDescriptorSupplier("CurrentList"))
              .build();
        }
      }
    }
    return getCurrentListMethod;
  }

  private static volatile io.grpc.MethodDescriptor getWhiteListMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "WhiteList",
      requestType = types.Polarrpc.Paginations.class,
      responseType = types.Polarrpc.PolarisPeerList.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getWhiteListMethod() {
    io.grpc.MethodDescriptor getWhiteListMethod;
    if ((getWhiteListMethod = PolarisRPCServiceGrpc.getWhiteListMethod) == null) {
      synchronized (PolarisRPCServiceGrpc.class) {
        if ((getWhiteListMethod = PolarisRPCServiceGrpc.getWhiteListMethod) == null) {
          PolarisRPCServiceGrpc.getWhiteListMethod = getWhiteListMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WhiteList"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  types.Polarrpc.Paginations.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  types.Polarrpc.PolarisPeerList.getDefaultInstance()))
              .setSchemaDescriptor(new PolarisRPCServiceMethodDescriptorSupplier("WhiteList"))
              .build();
        }
      }
    }
    return getWhiteListMethod;
  }

  private static volatile io.grpc.MethodDescriptor getBlackListMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "BlackList",
      requestType = types.Polarrpc.Paginations.class,
      responseType = types.Polarrpc.PolarisPeerList.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getBlackListMethod() {
    io.grpc.MethodDescriptor getBlackListMethod;
    if ((getBlackListMethod = PolarisRPCServiceGrpc.getBlackListMethod) == null) {
      synchronized (PolarisRPCServiceGrpc.class) {
        if ((getBlackListMethod = PolarisRPCServiceGrpc.getBlackListMethod) == null) {
          PolarisRPCServiceGrpc.getBlackListMethod = getBlackListMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BlackList"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  types.Polarrpc.Paginations.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  types.Polarrpc.PolarisPeerList.getDefaultInstance()))
              .setSchemaDescriptor(new PolarisRPCServiceMethodDescriptorSupplier("BlackList"))
              .build();
        }
      }
    }
    return getBlackListMethod;
  }

  private static volatile io.grpc.MethodDescriptor getListBLEntriesMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "ListBLEntries",
      requestType = types.Rpc.Empty.class,
      responseType = types.Polarrpc.BLConfEntries.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListBLEntriesMethod() {
    io.grpc.MethodDescriptor getListBLEntriesMethod;
    if ((getListBLEntriesMethod = PolarisRPCServiceGrpc.getListBLEntriesMethod) == null) {
      synchronized (PolarisRPCServiceGrpc.class) {
        if ((getListBLEntriesMethod = PolarisRPCServiceGrpc.getListBLEntriesMethod) == null) {
          PolarisRPCServiceGrpc.getListBLEntriesMethod = getListBLEntriesMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBLEntries"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  types.Rpc.Empty.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  types.Polarrpc.BLConfEntries.getDefaultInstance()))
              .setSchemaDescriptor(new PolarisRPCServiceMethodDescriptorSupplier("ListBLEntries"))
              .build();
        }
      }
    }
    return getListBLEntriesMethod;
  }

  private static volatile io.grpc.MethodDescriptor getAddBLEntryMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "AddBLEntry",
      requestType = types.Polarrpc.AddEntryParams.class,
      responseType = types.Rpc.SingleString.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getAddBLEntryMethod() {
    io.grpc.MethodDescriptor getAddBLEntryMethod;
    if ((getAddBLEntryMethod = PolarisRPCServiceGrpc.getAddBLEntryMethod) == null) {
      synchronized (PolarisRPCServiceGrpc.class) {
        if ((getAddBLEntryMethod = PolarisRPCServiceGrpc.getAddBLEntryMethod) == null) {
          PolarisRPCServiceGrpc.getAddBLEntryMethod = getAddBLEntryMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddBLEntry"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  types.Polarrpc.AddEntryParams.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  types.Rpc.SingleString.getDefaultInstance()))
              .setSchemaDescriptor(new PolarisRPCServiceMethodDescriptorSupplier("AddBLEntry"))
              .build();
        }
      }
    }
    return getAddBLEntryMethod;
  }

  private static volatile io.grpc.MethodDescriptor getRemoveBLEntryMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "RemoveBLEntry",
      requestType = types.Polarrpc.RmEntryParams.class,
      responseType = types.Rpc.SingleString.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getRemoveBLEntryMethod() {
    io.grpc.MethodDescriptor getRemoveBLEntryMethod;
    if ((getRemoveBLEntryMethod = PolarisRPCServiceGrpc.getRemoveBLEntryMethod) == null) {
      synchronized (PolarisRPCServiceGrpc.class) {
        if ((getRemoveBLEntryMethod = PolarisRPCServiceGrpc.getRemoveBLEntryMethod) == null) {
          PolarisRPCServiceGrpc.getRemoveBLEntryMethod = getRemoveBLEntryMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveBLEntry"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  types.Polarrpc.RmEntryParams.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  types.Rpc.SingleString.getDefaultInstance()))
              .setSchemaDescriptor(new PolarisRPCServiceMethodDescriptorSupplier("RemoveBLEntry"))
              .build();
        }
      }
    }
    return getRemoveBLEntryMethod;
  }

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

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

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

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

    /**
     * 
     * Returns the current state of this node
     * 
*/ public void nodeState(types.Rpc.NodeReq request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getNodeStateMethod(), responseObserver); } /** *
     * Returns node metrics according to request
     * 
*/ public void metric(types.Metric.MetricsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMetricMethod(), responseObserver); } /** */ public void currentList(types.Polarrpc.Paginations request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCurrentListMethod(), responseObserver); } /** */ public void whiteList(types.Polarrpc.Paginations request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWhiteListMethod(), responseObserver); } /** */ public void blackList(types.Polarrpc.Paginations request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBlackListMethod(), responseObserver); } /** */ public void listBLEntries(types.Rpc.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBLEntriesMethod(), responseObserver); } /** */ public void addBLEntry(types.Polarrpc.AddEntryParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAddBLEntryMethod(), responseObserver); } /** */ public void removeBLEntry(types.Polarrpc.RmEntryParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveBLEntryMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getNodeStateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.NodeReq, types.Rpc.SingleBytes>( this, METHODID_NODE_STATE))) .addMethod( getMetricMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Metric.MetricsRequest, types.Metric.Metrics>( this, METHODID_METRIC))) .addMethod( getCurrentListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Polarrpc.Paginations, types.Polarrpc.PolarisPeerList>( this, METHODID_CURRENT_LIST))) .addMethod( getWhiteListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Polarrpc.Paginations, types.Polarrpc.PolarisPeerList>( this, METHODID_WHITE_LIST))) .addMethod( getBlackListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Polarrpc.Paginations, types.Polarrpc.PolarisPeerList>( this, METHODID_BLACK_LIST))) .addMethod( getListBLEntriesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Rpc.Empty, types.Polarrpc.BLConfEntries>( this, METHODID_LIST_BLENTRIES))) .addMethod( getAddBLEntryMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Polarrpc.AddEntryParams, types.Rpc.SingleString>( this, METHODID_ADD_BLENTRY))) .addMethod( getRemoveBLEntryMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< types.Polarrpc.RmEntryParams, types.Rpc.SingleString>( this, METHODID_REMOVE_BLENTRY))) .build(); } } /** */ public static final class PolarisRPCServiceStub extends io.grpc.stub.AbstractAsyncStub { private PolarisRPCServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected PolarisRPCServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PolarisRPCServiceStub(channel, callOptions); } /** *
     * Returns the current state of this node
     * 
*/ public void nodeState(types.Rpc.NodeReq request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getNodeStateMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns node metrics according to request
     * 
*/ public void metric(types.Metric.MetricsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getMetricMethod(), getCallOptions()), request, responseObserver); } /** */ public void currentList(types.Polarrpc.Paginations request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCurrentListMethod(), getCallOptions()), request, responseObserver); } /** */ public void whiteList(types.Polarrpc.Paginations request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getWhiteListMethod(), getCallOptions()), request, responseObserver); } /** */ public void blackList(types.Polarrpc.Paginations request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBlackListMethod(), getCallOptions()), request, responseObserver); } /** */ public void listBLEntries(types.Rpc.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListBLEntriesMethod(), getCallOptions()), request, responseObserver); } /** */ public void addBLEntry(types.Polarrpc.AddEntryParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getAddBLEntryMethod(), getCallOptions()), request, responseObserver); } /** */ public void removeBLEntry(types.Polarrpc.RmEntryParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRemoveBLEntryMethod(), getCallOptions()), request, responseObserver); } } /** */ public static final class PolarisRPCServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private PolarisRPCServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected PolarisRPCServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PolarisRPCServiceBlockingStub(channel, callOptions); } /** *
     * Returns the current state of this node
     * 
*/ public types.Rpc.SingleBytes nodeState(types.Rpc.NodeReq request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getNodeStateMethod(), getCallOptions(), request); } /** *
     * Returns node metrics according to request
     * 
*/ public types.Metric.Metrics metric(types.Metric.MetricsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getMetricMethod(), getCallOptions(), request); } /** */ public types.Polarrpc.PolarisPeerList currentList(types.Polarrpc.Paginations request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCurrentListMethod(), getCallOptions(), request); } /** */ public types.Polarrpc.PolarisPeerList whiteList(types.Polarrpc.Paginations request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getWhiteListMethod(), getCallOptions(), request); } /** */ public types.Polarrpc.PolarisPeerList blackList(types.Polarrpc.Paginations request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBlackListMethod(), getCallOptions(), request); } /** */ public types.Polarrpc.BLConfEntries listBLEntries(types.Rpc.Empty request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBLEntriesMethod(), getCallOptions(), request); } /** */ public types.Rpc.SingleString addBLEntry(types.Polarrpc.AddEntryParams request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAddBLEntryMethod(), getCallOptions(), request); } /** */ public types.Rpc.SingleString removeBLEntry(types.Polarrpc.RmEntryParams request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRemoveBLEntryMethod(), getCallOptions(), request); } } /** */ public static final class PolarisRPCServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private PolarisRPCServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected PolarisRPCServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PolarisRPCServiceFutureStub(channel, callOptions); } /** *
     * Returns the current state of this node
     * 
*/ public com.google.common.util.concurrent.ListenableFuture nodeState( types.Rpc.NodeReq request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getNodeStateMethod(), getCallOptions()), request); } /** *
     * Returns node metrics according to request
     * 
*/ public com.google.common.util.concurrent.ListenableFuture metric( types.Metric.MetricsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getMetricMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture currentList( types.Polarrpc.Paginations request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCurrentListMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture whiteList( types.Polarrpc.Paginations request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getWhiteListMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture blackList( types.Polarrpc.Paginations request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBlackListMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture listBLEntries( types.Rpc.Empty request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBLEntriesMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture addBLEntry( types.Polarrpc.AddEntryParams request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAddBLEntryMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture removeBLEntry( types.Polarrpc.RmEntryParams request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRemoveBLEntryMethod(), getCallOptions()), request); } } private static final int METHODID_NODE_STATE = 0; private static final int METHODID_METRIC = 1; private static final int METHODID_CURRENT_LIST = 2; private static final int METHODID_WHITE_LIST = 3; private static final int METHODID_BLACK_LIST = 4; private static final int METHODID_LIST_BLENTRIES = 5; private static final int METHODID_ADD_BLENTRY = 6; private static final int METHODID_REMOVE_BLENTRY = 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 PolarisRPCServiceImplBase serviceImpl; private final int methodId; MethodHandlers(PolarisRPCServiceImplBase 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_NODE_STATE: serviceImpl.nodeState((types.Rpc.NodeReq) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_METRIC: serviceImpl.metric((types.Metric.MetricsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CURRENT_LIST: serviceImpl.currentList((types.Polarrpc.Paginations) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_WHITE_LIST: serviceImpl.whiteList((types.Polarrpc.Paginations) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BLACK_LIST: serviceImpl.blackList((types.Polarrpc.Paginations) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_BLENTRIES: serviceImpl.listBLEntries((types.Rpc.Empty) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ADD_BLENTRY: serviceImpl.addBLEntry((types.Polarrpc.AddEntryParams) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REMOVE_BLENTRY: serviceImpl.removeBLEntry((types.Polarrpc.RmEntryParams) 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 PolarisRPCServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { PolarisRPCServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return types.Polarrpc.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("PolarisRPCService"); } } private static final class PolarisRPCServiceFileDescriptorSupplier extends PolarisRPCServiceBaseDescriptorSupplier { PolarisRPCServiceFileDescriptorSupplier() {} } private static final class PolarisRPCServiceMethodDescriptorSupplier extends PolarisRPCServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; PolarisRPCServiceMethodDescriptorSupplier(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 (PolarisRPCServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new PolarisRPCServiceFileDescriptorSupplier()) .addMethod(getNodeStateMethod()) .addMethod(getMetricMethod()) .addMethod(getCurrentListMethod()) .addMethod(getWhiteListMethod()) .addMethod(getBlackListMethod()) .addMethod(getListBLEntriesMethod()) .addMethod(getAddBLEntryMethod()) .addMethod(getRemoveBLEntryMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy