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

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

There is a newer version: 0.8.0-rc0
Show 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 StreamRegistryServiceGrpc {

  private StreamRegistryServiceGrpc() {}

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

  // 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.StreamRegistryServiceCreateRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceCreateResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getCreateMethod() {
    io.grpc.MethodDescriptor getCreateMethod;
    if ((getCreateMethod = StreamRegistryServiceGrpc.getCreateMethod) == null) {
      synchronized (StreamRegistryServiceGrpc.class) {
        if ((getCreateMethod = StreamRegistryServiceGrpc.getCreateMethod) == null) {
          StreamRegistryServiceGrpc.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.StreamRegistryServiceCreateRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceCreateResponse.getDefaultInstance()))
              .setSchemaDescriptor(new StreamRegistryServiceMethodDescriptorSupplier("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.StreamRegistryServiceUpdateRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceUpdateResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUpdateMethod() {
    io.grpc.MethodDescriptor getUpdateMethod;
    if ((getUpdateMethod = StreamRegistryServiceGrpc.getUpdateMethod) == null) {
      synchronized (StreamRegistryServiceGrpc.class) {
        if ((getUpdateMethod = StreamRegistryServiceGrpc.getUpdateMethod) == null) {
          StreamRegistryServiceGrpc.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.StreamRegistryServiceUpdateRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceUpdateResponse.getDefaultInstance()))
              .setSchemaDescriptor(new StreamRegistryServiceMethodDescriptorSupplier("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.StreamRegistryServiceDeleteRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceDeleteResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getDeleteMethod() {
    io.grpc.MethodDescriptor getDeleteMethod;
    if ((getDeleteMethod = StreamRegistryServiceGrpc.getDeleteMethod) == null) {
      synchronized (StreamRegistryServiceGrpc.class) {
        if ((getDeleteMethod = StreamRegistryServiceGrpc.getDeleteMethod) == null) {
          StreamRegistryServiceGrpc.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.StreamRegistryServiceDeleteRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceDeleteResponse.getDefaultInstance()))
              .setSchemaDescriptor(new StreamRegistryServiceMethodDescriptorSupplier("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.StreamRegistryServiceGetRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceGetResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetMethod() {
    io.grpc.MethodDescriptor getGetMethod;
    if ((getGetMethod = StreamRegistryServiceGrpc.getGetMethod) == null) {
      synchronized (StreamRegistryServiceGrpc.class) {
        if ((getGetMethod = StreamRegistryServiceGrpc.getGetMethod) == null) {
          StreamRegistryServiceGrpc.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.StreamRegistryServiceGetRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceGetResponse.getDefaultInstance()))
              .setSchemaDescriptor(new StreamRegistryServiceMethodDescriptorSupplier("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.StreamRegistryServiceListRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceListResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListMethod() {
    io.grpc.MethodDescriptor getListMethod;
    if ((getListMethod = StreamRegistryServiceGrpc.getListMethod) == null) {
      synchronized (StreamRegistryServiceGrpc.class) {
        if ((getListMethod = StreamRegistryServiceGrpc.getListMethod) == null) {
          StreamRegistryServiceGrpc.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.StreamRegistryServiceListRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceListResponse.getDefaultInstance()))
              .setSchemaDescriptor(new StreamRegistryServiceMethodDescriptorSupplier("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.StreamRegistryServiceExistRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceExistResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getExistMethod() {
    io.grpc.MethodDescriptor getExistMethod;
    if ((getExistMethod = StreamRegistryServiceGrpc.getExistMethod) == null) {
      synchronized (StreamRegistryServiceGrpc.class) {
        if ((getExistMethod = StreamRegistryServiceGrpc.getExistMethod) == null) {
          StreamRegistryServiceGrpc.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.StreamRegistryServiceExistRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceExistResponse.getDefaultInstance()))
              .setSchemaDescriptor(new StreamRegistryServiceMethodDescriptorSupplier("Exist"))
              .build();
        }
      }
    }
    return getExistMethod;
  }

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

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

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

  /**
   */
  public interface AsyncService {

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

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

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

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

    /**
     */
    default void list(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceListRequest 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.StreamRegistryServiceExistRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExistMethod(), responseObserver); } } /** * Base class for the server implementation of the service StreamRegistryService. */ public static abstract class StreamRegistryServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return StreamRegistryServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service StreamRegistryService. */ public static final class StreamRegistryServiceStub extends io.grpc.stub.AbstractAsyncStub { private StreamRegistryServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected StreamRegistryServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new StreamRegistryServiceStub(channel, callOptions); } /** */ public void create(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceCreateRequest 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.StreamRegistryServiceUpdateRequest 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.StreamRegistryServiceDeleteRequest 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.StreamRegistryServiceGetRequest 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.StreamRegistryServiceListRequest 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.StreamRegistryServiceExistRequest 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 StreamRegistryService. */ public static final class StreamRegistryServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private StreamRegistryServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected StreamRegistryServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new StreamRegistryServiceBlockingStub(channel, callOptions); } /** */ public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceCreateResponse create(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceCreateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateMethod(), getCallOptions(), request); } /** */ public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceUpdateResponse update(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceUpdateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateMethod(), getCallOptions(), request); } /** */ public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceDeleteResponse delete(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceDeleteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteMethod(), getCallOptions(), request); } /** */ public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceGetResponse get(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceGetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetMethod(), getCallOptions(), request); } /** */ public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceListResponse list(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceListRequest 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.StreamRegistryServiceExistResponse exist(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceExistRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExistMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service StreamRegistryService. */ public static final class StreamRegistryServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private StreamRegistryServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected StreamRegistryServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new StreamRegistryServiceFutureStub(channel, callOptions); } /** */ public com.google.common.util.concurrent.ListenableFuture create( org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceCreateRequest 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.StreamRegistryServiceUpdateRequest 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.StreamRegistryServiceDeleteRequest 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.StreamRegistryServiceGetRequest 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.StreamRegistryServiceListRequest 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.StreamRegistryServiceExistRequest 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.StreamRegistryServiceCreateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE: serviceImpl.update((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceUpdateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE: serviceImpl.delete((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceDeleteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET: serviceImpl.get((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceGetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST: serviceImpl.list((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceListRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_EXIST: serviceImpl.exist((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceExistRequest) 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.StreamRegistryServiceCreateRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceCreateResponse>( service, METHODID_CREATE))) .addMethod( getUpdateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceUpdateRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceUpdateResponse>( service, METHODID_UPDATE))) .addMethod( getDeleteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceDeleteRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceDeleteResponse>( service, METHODID_DELETE))) .addMethod( getGetMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceGetRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceGetResponse>( service, METHODID_GET))) .addMethod( getListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceListRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceListResponse>( service, METHODID_LIST))) .addMethod( getExistMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceExistRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.StreamRegistryServiceExistResponse>( service, METHODID_EXIST))) .build(); } private static abstract class StreamRegistryServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { StreamRegistryServiceBaseDescriptorSupplier() {} @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("StreamRegistryService"); } } private static final class StreamRegistryServiceFileDescriptorSupplier extends StreamRegistryServiceBaseDescriptorSupplier { StreamRegistryServiceFileDescriptorSupplier() {} } private static final class StreamRegistryServiceMethodDescriptorSupplier extends StreamRegistryServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; StreamRegistryServiceMethodDescriptorSupplier(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 (StreamRegistryServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new StreamRegistryServiceFileDescriptorSupplier()) .addMethod(getCreateMethod()) .addMethod(getUpdateMethod()) .addMethod(getDeleteMethod()) .addMethod(getGetMethod()) .addMethod(getListMethod()) .addMethod(getExistMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy