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

org.apache.skywalking.banyandb.database.v1.IndexRuleBindingRegistryServiceGrpc Maven / Gradle / Ivy

The newest version!
package org.apache.skywalking.banyandb.database.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.63.0)",
    comments = "Source: banyandb/v1/banyandb-database.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class IndexRuleBindingRegistryServiceGrpc {

  private IndexRuleBindingRegistryServiceGrpc() {}

  public static final java.lang.String SERVICE_NAME = "banyandb.database.v1.IndexRuleBindingRegistryService";

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

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Create",
      requestType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceCreateRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceCreateResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getCreateMethod() {
    io.grpc.MethodDescriptor getCreateMethod;
    if ((getCreateMethod = IndexRuleBindingRegistryServiceGrpc.getCreateMethod) == null) {
      synchronized (IndexRuleBindingRegistryServiceGrpc.class) {
        if ((getCreateMethod = IndexRuleBindingRegistryServiceGrpc.getCreateMethod) == null) {
          IndexRuleBindingRegistryServiceGrpc.getCreateMethod = getCreateMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Create"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceCreateRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceCreateResponse.getDefaultInstance()))
              .setSchemaDescriptor(new IndexRuleBindingRegistryServiceMethodDescriptorSupplier("Create"))
              .build();
        }
      }
    }
    return getCreateMethod;
  }

  private static volatile io.grpc.MethodDescriptor getUpdateMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Update",
      requestType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceUpdateRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceUpdateResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUpdateMethod() {
    io.grpc.MethodDescriptor getUpdateMethod;
    if ((getUpdateMethod = IndexRuleBindingRegistryServiceGrpc.getUpdateMethod) == null) {
      synchronized (IndexRuleBindingRegistryServiceGrpc.class) {
        if ((getUpdateMethod = IndexRuleBindingRegistryServiceGrpc.getUpdateMethod) == null) {
          IndexRuleBindingRegistryServiceGrpc.getUpdateMethod = getUpdateMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Update"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceUpdateRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceUpdateResponse.getDefaultInstance()))
              .setSchemaDescriptor(new IndexRuleBindingRegistryServiceMethodDescriptorSupplier("Update"))
              .build();
        }
      }
    }
    return getUpdateMethod;
  }

  private static volatile io.grpc.MethodDescriptor getDeleteMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Delete",
      requestType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceDeleteRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceDeleteResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getDeleteMethod() {
    io.grpc.MethodDescriptor getDeleteMethod;
    if ((getDeleteMethod = IndexRuleBindingRegistryServiceGrpc.getDeleteMethod) == null) {
      synchronized (IndexRuleBindingRegistryServiceGrpc.class) {
        if ((getDeleteMethod = IndexRuleBindingRegistryServiceGrpc.getDeleteMethod) == null) {
          IndexRuleBindingRegistryServiceGrpc.getDeleteMethod = getDeleteMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Delete"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceDeleteRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceDeleteResponse.getDefaultInstance()))
              .setSchemaDescriptor(new IndexRuleBindingRegistryServiceMethodDescriptorSupplier("Delete"))
              .build();
        }
      }
    }
    return getDeleteMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Get",
      requestType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceGetRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceGetResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetMethod() {
    io.grpc.MethodDescriptor getGetMethod;
    if ((getGetMethod = IndexRuleBindingRegistryServiceGrpc.getGetMethod) == null) {
      synchronized (IndexRuleBindingRegistryServiceGrpc.class) {
        if ((getGetMethod = IndexRuleBindingRegistryServiceGrpc.getGetMethod) == null) {
          IndexRuleBindingRegistryServiceGrpc.getGetMethod = getGetMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Get"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceGetRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceGetResponse.getDefaultInstance()))
              .setSchemaDescriptor(new IndexRuleBindingRegistryServiceMethodDescriptorSupplier("Get"))
              .build();
        }
      }
    }
    return getGetMethod;
  }

  private static volatile io.grpc.MethodDescriptor getListMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "List",
      requestType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceListRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceListResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListMethod() {
    io.grpc.MethodDescriptor getListMethod;
    if ((getListMethod = IndexRuleBindingRegistryServiceGrpc.getListMethod) == null) {
      synchronized (IndexRuleBindingRegistryServiceGrpc.class) {
        if ((getListMethod = IndexRuleBindingRegistryServiceGrpc.getListMethod) == null) {
          IndexRuleBindingRegistryServiceGrpc.getListMethod = getListMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "List"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceListRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceListResponse.getDefaultInstance()))
              .setSchemaDescriptor(new IndexRuleBindingRegistryServiceMethodDescriptorSupplier("List"))
              .build();
        }
      }
    }
    return getListMethod;
  }

  private static volatile io.grpc.MethodDescriptor getExistMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Exist",
      requestType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceExistRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceExistResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getExistMethod() {
    io.grpc.MethodDescriptor getExistMethod;
    if ((getExistMethod = IndexRuleBindingRegistryServiceGrpc.getExistMethod) == null) {
      synchronized (IndexRuleBindingRegistryServiceGrpc.class) {
        if ((getExistMethod = IndexRuleBindingRegistryServiceGrpc.getExistMethod) == null) {
          IndexRuleBindingRegistryServiceGrpc.getExistMethod = getExistMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Exist"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceExistRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceExistResponse.getDefaultInstance()))
              .setSchemaDescriptor(new IndexRuleBindingRegistryServiceMethodDescriptorSupplier("Exist"))
              .build();
        }
      }
    }
    return getExistMethod;
  }

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

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

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

  /**
   */
  public interface AsyncService {

    /**
     */
    default void create(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceCreateRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
    }

    /**
     */
    default void update(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceUpdateRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
    }

    /**
     */
    default void delete(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceDeleteRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver);
    }

    /**
     */
    default void get(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceGetRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
    }

    /**
     */
    default void list(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceListRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver);
    }

    /**
     * 
     * Exist doesn't expose an HTTP endpoint. Please use HEAD method to touch Get instead
     * 
*/ default void exist(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceExistRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExistMethod(), responseObserver); } } /** * Base class for the server implementation of the service IndexRuleBindingRegistryService. */ public static abstract class IndexRuleBindingRegistryServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return IndexRuleBindingRegistryServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service IndexRuleBindingRegistryService. */ public static final class IndexRuleBindingRegistryServiceStub extends io.grpc.stub.AbstractAsyncStub { private IndexRuleBindingRegistryServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected IndexRuleBindingRegistryServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IndexRuleBindingRegistryServiceStub(channel, callOptions); } /** */ public void create(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceCreateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver); } /** */ public void update(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceUpdateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver); } /** */ public void delete(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceDeleteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver); } /** */ public void get(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceGetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver); } /** */ public void list(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceListRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver); } /** *
     * Exist doesn't expose an HTTP endpoint. Please use HEAD method to touch Get instead
     * 
*/ public void exist(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceExistRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExistMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service IndexRuleBindingRegistryService. */ public static final class IndexRuleBindingRegistryServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private IndexRuleBindingRegistryServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected IndexRuleBindingRegistryServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IndexRuleBindingRegistryServiceBlockingStub(channel, callOptions); } /** */ public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceCreateResponse create(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceCreateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateMethod(), getCallOptions(), request); } /** */ public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceUpdateResponse update(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceUpdateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateMethod(), getCallOptions(), request); } /** */ public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceDeleteResponse delete(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceDeleteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteMethod(), getCallOptions(), request); } /** */ public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceGetResponse get(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceGetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetMethod(), getCallOptions(), request); } /** */ public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceListResponse list(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceListRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListMethod(), getCallOptions(), request); } /** *
     * Exist doesn't expose an HTTP endpoint. Please use HEAD method to touch Get instead
     * 
*/ public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceExistResponse exist(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceExistRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExistMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service IndexRuleBindingRegistryService. */ public static final class IndexRuleBindingRegistryServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private IndexRuleBindingRegistryServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected IndexRuleBindingRegistryServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IndexRuleBindingRegistryServiceFutureStub(channel, callOptions); } /** */ public com.google.common.util.concurrent.ListenableFuture create( org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceCreateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture update( org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceUpdateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture delete( org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceDeleteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture get( org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceGetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture list( org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceListRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListMethod(), getCallOptions()), request); } /** *
     * Exist doesn't expose an HTTP endpoint. Please use HEAD method to touch Get instead
     * 
*/ public com.google.common.util.concurrent.ListenableFuture exist( org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceExistRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExistMethod(), getCallOptions()), request); } } private static final int METHODID_CREATE = 0; private static final int METHODID_UPDATE = 1; private static final int METHODID_DELETE = 2; private static final int METHODID_GET = 3; private static final int METHODID_LIST = 4; private static final int METHODID_EXIST = 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_CREATE: serviceImpl.create((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceCreateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE: serviceImpl.update((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceUpdateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE: serviceImpl.delete((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceDeleteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET: serviceImpl.get((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceGetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST: serviceImpl.list((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceListRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_EXIST: serviceImpl.exist((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceExistRequest) 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( getCreateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceCreateRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceCreateResponse>( service, METHODID_CREATE))) .addMethod( getUpdateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceUpdateRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceUpdateResponse>( service, METHODID_UPDATE))) .addMethod( getDeleteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceDeleteRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceDeleteResponse>( service, METHODID_DELETE))) .addMethod( getGetMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceGetRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceGetResponse>( service, METHODID_GET))) .addMethod( getListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceListRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceListResponse>( service, METHODID_LIST))) .addMethod( getExistMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceExistRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.IndexRuleBindingRegistryServiceExistResponse>( service, METHODID_EXIST))) .build(); } private static abstract class IndexRuleBindingRegistryServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { IndexRuleBindingRegistryServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("IndexRuleBindingRegistryService"); } } private static final class IndexRuleBindingRegistryServiceFileDescriptorSupplier extends IndexRuleBindingRegistryServiceBaseDescriptorSupplier { IndexRuleBindingRegistryServiceFileDescriptorSupplier() {} } private static final class IndexRuleBindingRegistryServiceMethodDescriptorSupplier extends IndexRuleBindingRegistryServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; IndexRuleBindingRegistryServiceMethodDescriptorSupplier(java.lang.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 (IndexRuleBindingRegistryServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new IndexRuleBindingRegistryServiceFileDescriptorSupplier()) .addMethod(getCreateMethod()) .addMethod(getUpdateMethod()) .addMethod(getDeleteMethod()) .addMethod(getGetMethod()) .addMethod(getListMethod()) .addMethod(getExistMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy