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

org.apache.skywalking.banyandb.database.v1.MeasureRegistryServiceGrpc 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 MeasureRegistryServiceGrpc {

  private MeasureRegistryServiceGrpc() {}

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

  // 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.MeasureRegistryServiceCreateRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceCreateResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getCreateMethod() {
    io.grpc.MethodDescriptor getCreateMethod;
    if ((getCreateMethod = MeasureRegistryServiceGrpc.getCreateMethod) == null) {
      synchronized (MeasureRegistryServiceGrpc.class) {
        if ((getCreateMethod = MeasureRegistryServiceGrpc.getCreateMethod) == null) {
          MeasureRegistryServiceGrpc.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.MeasureRegistryServiceCreateRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceCreateResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MeasureRegistryServiceMethodDescriptorSupplier("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.MeasureRegistryServiceUpdateRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceUpdateResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUpdateMethod() {
    io.grpc.MethodDescriptor getUpdateMethod;
    if ((getUpdateMethod = MeasureRegistryServiceGrpc.getUpdateMethod) == null) {
      synchronized (MeasureRegistryServiceGrpc.class) {
        if ((getUpdateMethod = MeasureRegistryServiceGrpc.getUpdateMethod) == null) {
          MeasureRegistryServiceGrpc.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.MeasureRegistryServiceUpdateRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceUpdateResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MeasureRegistryServiceMethodDescriptorSupplier("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.MeasureRegistryServiceDeleteRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceDeleteResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getDeleteMethod() {
    io.grpc.MethodDescriptor getDeleteMethod;
    if ((getDeleteMethod = MeasureRegistryServiceGrpc.getDeleteMethod) == null) {
      synchronized (MeasureRegistryServiceGrpc.class) {
        if ((getDeleteMethod = MeasureRegistryServiceGrpc.getDeleteMethod) == null) {
          MeasureRegistryServiceGrpc.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.MeasureRegistryServiceDeleteRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceDeleteResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MeasureRegistryServiceMethodDescriptorSupplier("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.MeasureRegistryServiceGetRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceGetResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetMethod() {
    io.grpc.MethodDescriptor getGetMethod;
    if ((getGetMethod = MeasureRegistryServiceGrpc.getGetMethod) == null) {
      synchronized (MeasureRegistryServiceGrpc.class) {
        if ((getGetMethod = MeasureRegistryServiceGrpc.getGetMethod) == null) {
          MeasureRegistryServiceGrpc.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.MeasureRegistryServiceGetRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceGetResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MeasureRegistryServiceMethodDescriptorSupplier("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.MeasureRegistryServiceListRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceListResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListMethod() {
    io.grpc.MethodDescriptor getListMethod;
    if ((getListMethod = MeasureRegistryServiceGrpc.getListMethod) == null) {
      synchronized (MeasureRegistryServiceGrpc.class) {
        if ((getListMethod = MeasureRegistryServiceGrpc.getListMethod) == null) {
          MeasureRegistryServiceGrpc.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.MeasureRegistryServiceListRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceListResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MeasureRegistryServiceMethodDescriptorSupplier("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.MeasureRegistryServiceExistRequest.class,
      responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceExistResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getExistMethod() {
    io.grpc.MethodDescriptor getExistMethod;
    if ((getExistMethod = MeasureRegistryServiceGrpc.getExistMethod) == null) {
      synchronized (MeasureRegistryServiceGrpc.class) {
        if ((getExistMethod = MeasureRegistryServiceGrpc.getExistMethod) == null) {
          MeasureRegistryServiceGrpc.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.MeasureRegistryServiceExistRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceExistResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MeasureRegistryServiceMethodDescriptorSupplier("Exist"))
              .build();
        }
      }
    }
    return getExistMethod;
  }

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

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

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

  /**
   */
  public interface AsyncService {

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

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

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

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

    /**
     */
    default void list(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceListRequest 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.MeasureRegistryServiceExistRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExistMethod(), responseObserver); } } /** * Base class for the server implementation of the service MeasureRegistryService. */ public static abstract class MeasureRegistryServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return MeasureRegistryServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service MeasureRegistryService. */ public static final class MeasureRegistryServiceStub extends io.grpc.stub.AbstractAsyncStub { private MeasureRegistryServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MeasureRegistryServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MeasureRegistryServiceStub(channel, callOptions); } /** */ public void create(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceCreateRequest 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.MeasureRegistryServiceUpdateRequest 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.MeasureRegistryServiceDeleteRequest 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.MeasureRegistryServiceGetRequest 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.MeasureRegistryServiceListRequest 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.MeasureRegistryServiceExistRequest 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 MeasureRegistryService. */ public static final class MeasureRegistryServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private MeasureRegistryServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MeasureRegistryServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MeasureRegistryServiceBlockingStub(channel, callOptions); } /** */ public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceCreateResponse create(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceCreateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateMethod(), getCallOptions(), request); } /** */ public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceUpdateResponse update(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceUpdateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateMethod(), getCallOptions(), request); } /** */ public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceDeleteResponse delete(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceDeleteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteMethod(), getCallOptions(), request); } /** */ public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceGetResponse get(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceGetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetMethod(), getCallOptions(), request); } /** */ public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceListResponse list(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceListRequest 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.MeasureRegistryServiceExistResponse exist(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceExistRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExistMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service MeasureRegistryService. */ public static final class MeasureRegistryServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private MeasureRegistryServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MeasureRegistryServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MeasureRegistryServiceFutureStub(channel, callOptions); } /** */ public com.google.common.util.concurrent.ListenableFuture create( org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceCreateRequest 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.MeasureRegistryServiceUpdateRequest 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.MeasureRegistryServiceDeleteRequest 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.MeasureRegistryServiceGetRequest 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.MeasureRegistryServiceListRequest 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.MeasureRegistryServiceExistRequest 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.MeasureRegistryServiceCreateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE: serviceImpl.update((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceUpdateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE: serviceImpl.delete((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceDeleteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET: serviceImpl.get((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceGetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST: serviceImpl.list((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceListRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_EXIST: serviceImpl.exist((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceExistRequest) 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.MeasureRegistryServiceCreateRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceCreateResponse>( service, METHODID_CREATE))) .addMethod( getUpdateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceUpdateRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceUpdateResponse>( service, METHODID_UPDATE))) .addMethod( getDeleteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceDeleteRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceDeleteResponse>( service, METHODID_DELETE))) .addMethod( getGetMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceGetRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceGetResponse>( service, METHODID_GET))) .addMethod( getListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceListRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceListResponse>( service, METHODID_LIST))) .addMethod( getExistMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceExistRequest, org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.MeasureRegistryServiceExistResponse>( service, METHODID_EXIST))) .build(); } private static abstract class MeasureRegistryServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { MeasureRegistryServiceBaseDescriptorSupplier() {} @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("MeasureRegistryService"); } } private static final class MeasureRegistryServiceFileDescriptorSupplier extends MeasureRegistryServiceBaseDescriptorSupplier { MeasureRegistryServiceFileDescriptorSupplier() {} } private static final class MeasureRegistryServiceMethodDescriptorSupplier extends MeasureRegistryServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; MeasureRegistryServiceMethodDescriptorSupplier(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 (MeasureRegistryServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new MeasureRegistryServiceFileDescriptorSupplier()) .addMethod(getCreateMethod()) .addMethod(getUpdateMethod()) .addMethod(getDeleteMethod()) .addMethod(getGetMethod()) .addMethod(getListMethod()) .addMethod(getExistMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy