org.apache.skywalking.banyandb.database.v1.TopNAggregationRegistryServiceGrpc Maven / Gradle / Ivy
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 TopNAggregationRegistryServiceGrpc {
private TopNAggregationRegistryServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "banyandb.database.v1.TopNAggregationRegistryService";
// 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.TopNAggregationRegistryServiceCreateRequest.class,
responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceCreateResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateMethod() {
io.grpc.MethodDescriptor getCreateMethod;
if ((getCreateMethod = TopNAggregationRegistryServiceGrpc.getCreateMethod) == null) {
synchronized (TopNAggregationRegistryServiceGrpc.class) {
if ((getCreateMethod = TopNAggregationRegistryServiceGrpc.getCreateMethod) == null) {
TopNAggregationRegistryServiceGrpc.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.TopNAggregationRegistryServiceCreateRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceCreateResponse.getDefaultInstance()))
.setSchemaDescriptor(new TopNAggregationRegistryServiceMethodDescriptorSupplier("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.TopNAggregationRegistryServiceUpdateRequest.class,
responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceUpdateResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateMethod() {
io.grpc.MethodDescriptor getUpdateMethod;
if ((getUpdateMethod = TopNAggregationRegistryServiceGrpc.getUpdateMethod) == null) {
synchronized (TopNAggregationRegistryServiceGrpc.class) {
if ((getUpdateMethod = TopNAggregationRegistryServiceGrpc.getUpdateMethod) == null) {
TopNAggregationRegistryServiceGrpc.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.TopNAggregationRegistryServiceUpdateRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceUpdateResponse.getDefaultInstance()))
.setSchemaDescriptor(new TopNAggregationRegistryServiceMethodDescriptorSupplier("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.TopNAggregationRegistryServiceDeleteRequest.class,
responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceDeleteResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteMethod() {
io.grpc.MethodDescriptor getDeleteMethod;
if ((getDeleteMethod = TopNAggregationRegistryServiceGrpc.getDeleteMethod) == null) {
synchronized (TopNAggregationRegistryServiceGrpc.class) {
if ((getDeleteMethod = TopNAggregationRegistryServiceGrpc.getDeleteMethod) == null) {
TopNAggregationRegistryServiceGrpc.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.TopNAggregationRegistryServiceDeleteRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceDeleteResponse.getDefaultInstance()))
.setSchemaDescriptor(new TopNAggregationRegistryServiceMethodDescriptorSupplier("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.TopNAggregationRegistryServiceGetRequest.class,
responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceGetResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMethod() {
io.grpc.MethodDescriptor getGetMethod;
if ((getGetMethod = TopNAggregationRegistryServiceGrpc.getGetMethod) == null) {
synchronized (TopNAggregationRegistryServiceGrpc.class) {
if ((getGetMethod = TopNAggregationRegistryServiceGrpc.getGetMethod) == null) {
TopNAggregationRegistryServiceGrpc.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.TopNAggregationRegistryServiceGetRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceGetResponse.getDefaultInstance()))
.setSchemaDescriptor(new TopNAggregationRegistryServiceMethodDescriptorSupplier("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.TopNAggregationRegistryServiceListRequest.class,
responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceListResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListMethod() {
io.grpc.MethodDescriptor getListMethod;
if ((getListMethod = TopNAggregationRegistryServiceGrpc.getListMethod) == null) {
synchronized (TopNAggregationRegistryServiceGrpc.class) {
if ((getListMethod = TopNAggregationRegistryServiceGrpc.getListMethod) == null) {
TopNAggregationRegistryServiceGrpc.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.TopNAggregationRegistryServiceListRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceListResponse.getDefaultInstance()))
.setSchemaDescriptor(new TopNAggregationRegistryServiceMethodDescriptorSupplier("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.TopNAggregationRegistryServiceExistRequest.class,
responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceExistResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getExistMethod() {
io.grpc.MethodDescriptor getExistMethod;
if ((getExistMethod = TopNAggregationRegistryServiceGrpc.getExistMethod) == null) {
synchronized (TopNAggregationRegistryServiceGrpc.class) {
if ((getExistMethod = TopNAggregationRegistryServiceGrpc.getExistMethod) == null) {
TopNAggregationRegistryServiceGrpc.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.TopNAggregationRegistryServiceExistRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceExistResponse.getDefaultInstance()))
.setSchemaDescriptor(new TopNAggregationRegistryServiceMethodDescriptorSupplier("Exist"))
.build();
}
}
}
return getExistMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static TopNAggregationRegistryServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public TopNAggregationRegistryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TopNAggregationRegistryServiceStub(channel, callOptions);
}
};
return TopNAggregationRegistryServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static TopNAggregationRegistryServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public TopNAggregationRegistryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TopNAggregationRegistryServiceBlockingStub(channel, callOptions);
}
};
return TopNAggregationRegistryServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static TopNAggregationRegistryServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public TopNAggregationRegistryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TopNAggregationRegistryServiceFutureStub(channel, callOptions);
}
};
return TopNAggregationRegistryServiceFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*/
default void create(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceCreateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*/
default void update(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceUpdateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
}
/**
*/
default void delete(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceDeleteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver);
}
/**
*/
default void get(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceGetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
}
/**
*/
default void list(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver);
}
/**
*/
default void exist(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceExistRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExistMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service TopNAggregationRegistryService.
*/
public static abstract class TopNAggregationRegistryServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return TopNAggregationRegistryServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service TopNAggregationRegistryService.
*/
public static final class TopNAggregationRegistryServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private TopNAggregationRegistryServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TopNAggregationRegistryServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TopNAggregationRegistryServiceStub(channel, callOptions);
}
/**
*/
public void create(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceCreateRequest 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.TopNAggregationRegistryServiceUpdateRequest 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.TopNAggregationRegistryServiceDeleteRequest 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.TopNAggregationRegistryServiceGetRequest 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.TopNAggregationRegistryServiceListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void exist(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceExistRequest 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 TopNAggregationRegistryService.
*/
public static final class TopNAggregationRegistryServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private TopNAggregationRegistryServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TopNAggregationRegistryServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TopNAggregationRegistryServiceBlockingStub(channel, callOptions);
}
/**
*/
public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceCreateResponse create(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceCreateRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*/
public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceUpdateResponse update(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceUpdateRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateMethod(), getCallOptions(), request);
}
/**
*/
public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceDeleteResponse delete(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceDeleteRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteMethod(), getCallOptions(), request);
}
/**
*/
public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceGetResponse get(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceGetRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMethod(), getCallOptions(), request);
}
/**
*/
public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceListResponse list(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceListRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListMethod(), getCallOptions(), request);
}
/**
*/
public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceExistResponse exist(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceExistRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getExistMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service TopNAggregationRegistryService.
*/
public static final class TopNAggregationRegistryServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private TopNAggregationRegistryServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TopNAggregationRegistryServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TopNAggregationRegistryServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture create(
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceCreateRequest 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.TopNAggregationRegistryServiceUpdateRequest 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.TopNAggregationRegistryServiceDeleteRequest 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.TopNAggregationRegistryServiceGetRequest 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.TopNAggregationRegistryServiceListRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture exist(
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceExistRequest 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.TopNAggregationRegistryServiceCreateRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE:
serviceImpl.update((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceUpdateRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE:
serviceImpl.delete((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceDeleteRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET:
serviceImpl.get((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceGetRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST:
serviceImpl.list((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceListRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_EXIST:
serviceImpl.exist((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceExistRequest) 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.TopNAggregationRegistryServiceCreateRequest,
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceCreateResponse>(
service, METHODID_CREATE)))
.addMethod(
getUpdateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceUpdateRequest,
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceUpdateResponse>(
service, METHODID_UPDATE)))
.addMethod(
getDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceDeleteRequest,
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceDeleteResponse>(
service, METHODID_DELETE)))
.addMethod(
getGetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceGetRequest,
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceGetResponse>(
service, METHODID_GET)))
.addMethod(
getListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceListRequest,
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceListResponse>(
service, METHODID_LIST)))
.addMethod(
getExistMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceExistRequest,
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.TopNAggregationRegistryServiceExistResponse>(
service, METHODID_EXIST)))
.build();
}
private static abstract class TopNAggregationRegistryServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
TopNAggregationRegistryServiceBaseDescriptorSupplier() {}
@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("TopNAggregationRegistryService");
}
}
private static final class TopNAggregationRegistryServiceFileDescriptorSupplier
extends TopNAggregationRegistryServiceBaseDescriptorSupplier {
TopNAggregationRegistryServiceFileDescriptorSupplier() {}
}
private static final class TopNAggregationRegistryServiceMethodDescriptorSupplier
extends TopNAggregationRegistryServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
TopNAggregationRegistryServiceMethodDescriptorSupplier(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 (TopNAggregationRegistryServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new TopNAggregationRegistryServiceFileDescriptorSupplier())
.addMethod(getCreateMethod())
.addMethod(getUpdateMethod())
.addMethod(getDeleteMethod())
.addMethod(getGetMethod())
.addMethod(getListMethod())
.addMethod(getExistMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy