org.apache.skywalking.banyandb.database.v1.GroupRegistryServiceGrpc 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 GroupRegistryServiceGrpc {
private GroupRegistryServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "banyandb.database.v1.GroupRegistryService";
// 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.GroupRegistryServiceCreateRequest.class,
responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceCreateResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateMethod() {
io.grpc.MethodDescriptor getCreateMethod;
if ((getCreateMethod = GroupRegistryServiceGrpc.getCreateMethod) == null) {
synchronized (GroupRegistryServiceGrpc.class) {
if ((getCreateMethod = GroupRegistryServiceGrpc.getCreateMethod) == null) {
GroupRegistryServiceGrpc.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.GroupRegistryServiceCreateRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceCreateResponse.getDefaultInstance()))
.setSchemaDescriptor(new GroupRegistryServiceMethodDescriptorSupplier("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.GroupRegistryServiceUpdateRequest.class,
responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceUpdateResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateMethod() {
io.grpc.MethodDescriptor getUpdateMethod;
if ((getUpdateMethod = GroupRegistryServiceGrpc.getUpdateMethod) == null) {
synchronized (GroupRegistryServiceGrpc.class) {
if ((getUpdateMethod = GroupRegistryServiceGrpc.getUpdateMethod) == null) {
GroupRegistryServiceGrpc.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.GroupRegistryServiceUpdateRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceUpdateResponse.getDefaultInstance()))
.setSchemaDescriptor(new GroupRegistryServiceMethodDescriptorSupplier("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.GroupRegistryServiceDeleteRequest.class,
responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceDeleteResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteMethod() {
io.grpc.MethodDescriptor getDeleteMethod;
if ((getDeleteMethod = GroupRegistryServiceGrpc.getDeleteMethod) == null) {
synchronized (GroupRegistryServiceGrpc.class) {
if ((getDeleteMethod = GroupRegistryServiceGrpc.getDeleteMethod) == null) {
GroupRegistryServiceGrpc.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.GroupRegistryServiceDeleteRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceDeleteResponse.getDefaultInstance()))
.setSchemaDescriptor(new GroupRegistryServiceMethodDescriptorSupplier("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.GroupRegistryServiceGetRequest.class,
responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceGetResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMethod() {
io.grpc.MethodDescriptor getGetMethod;
if ((getGetMethod = GroupRegistryServiceGrpc.getGetMethod) == null) {
synchronized (GroupRegistryServiceGrpc.class) {
if ((getGetMethod = GroupRegistryServiceGrpc.getGetMethod) == null) {
GroupRegistryServiceGrpc.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.GroupRegistryServiceGetRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceGetResponse.getDefaultInstance()))
.setSchemaDescriptor(new GroupRegistryServiceMethodDescriptorSupplier("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.GroupRegistryServiceListRequest.class,
responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceListResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListMethod() {
io.grpc.MethodDescriptor getListMethod;
if ((getListMethod = GroupRegistryServiceGrpc.getListMethod) == null) {
synchronized (GroupRegistryServiceGrpc.class) {
if ((getListMethod = GroupRegistryServiceGrpc.getListMethod) == null) {
GroupRegistryServiceGrpc.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.GroupRegistryServiceListRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceListResponse.getDefaultInstance()))
.setSchemaDescriptor(new GroupRegistryServiceMethodDescriptorSupplier("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.GroupRegistryServiceExistRequest.class,
responseType = org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceExistResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getExistMethod() {
io.grpc.MethodDescriptor getExistMethod;
if ((getExistMethod = GroupRegistryServiceGrpc.getExistMethod) == null) {
synchronized (GroupRegistryServiceGrpc.class) {
if ((getExistMethod = GroupRegistryServiceGrpc.getExistMethod) == null) {
GroupRegistryServiceGrpc.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.GroupRegistryServiceExistRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceExistResponse.getDefaultInstance()))
.setSchemaDescriptor(new GroupRegistryServiceMethodDescriptorSupplier("Exist"))
.build();
}
}
}
return getExistMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static GroupRegistryServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public GroupRegistryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GroupRegistryServiceStub(channel, callOptions);
}
};
return GroupRegistryServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static GroupRegistryServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public GroupRegistryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GroupRegistryServiceBlockingStub(channel, callOptions);
}
};
return GroupRegistryServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static GroupRegistryServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public GroupRegistryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GroupRegistryServiceFutureStub(channel, callOptions);
}
};
return GroupRegistryServiceFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*/
default void create(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceCreateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*/
default void update(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceUpdateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
}
/**
*/
default void delete(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceDeleteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver);
}
/**
*/
default void get(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceGetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
}
/**
*/
default void list(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceListRequest 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.GroupRegistryServiceExistRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExistMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service GroupRegistryService.
*/
public static abstract class GroupRegistryServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return GroupRegistryServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service GroupRegistryService.
*/
public static final class GroupRegistryServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private GroupRegistryServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected GroupRegistryServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GroupRegistryServiceStub(channel, callOptions);
}
/**
*/
public void create(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceCreateRequest 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.GroupRegistryServiceUpdateRequest 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.GroupRegistryServiceDeleteRequest 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.GroupRegistryServiceGetRequest 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.GroupRegistryServiceListRequest 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.GroupRegistryServiceExistRequest 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 GroupRegistryService.
*/
public static final class GroupRegistryServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private GroupRegistryServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected GroupRegistryServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GroupRegistryServiceBlockingStub(channel, callOptions);
}
/**
*/
public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceCreateResponse create(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceCreateRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*/
public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceUpdateResponse update(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceUpdateRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateMethod(), getCallOptions(), request);
}
/**
*/
public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceDeleteResponse delete(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceDeleteRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteMethod(), getCallOptions(), request);
}
/**
*/
public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceGetResponse get(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceGetRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMethod(), getCallOptions(), request);
}
/**
*/
public org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceListResponse list(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceListRequest 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.GroupRegistryServiceExistResponse exist(org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceExistRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getExistMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service GroupRegistryService.
*/
public static final class GroupRegistryServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private GroupRegistryServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected GroupRegistryServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GroupRegistryServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture create(
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceCreateRequest 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.GroupRegistryServiceUpdateRequest 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.GroupRegistryServiceDeleteRequest 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.GroupRegistryServiceGetRequest 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.GroupRegistryServiceListRequest 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.GroupRegistryServiceExistRequest 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.GroupRegistryServiceCreateRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE:
serviceImpl.update((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceUpdateRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE:
serviceImpl.delete((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceDeleteRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET:
serviceImpl.get((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceGetRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST:
serviceImpl.list((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceListRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_EXIST:
serviceImpl.exist((org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceExistRequest) 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.GroupRegistryServiceCreateRequest,
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceCreateResponse>(
service, METHODID_CREATE)))
.addMethod(
getUpdateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceUpdateRequest,
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceUpdateResponse>(
service, METHODID_UPDATE)))
.addMethod(
getDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceDeleteRequest,
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceDeleteResponse>(
service, METHODID_DELETE)))
.addMethod(
getGetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceGetRequest,
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceGetResponse>(
service, METHODID_GET)))
.addMethod(
getListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceListRequest,
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceListResponse>(
service, METHODID_LIST)))
.addMethod(
getExistMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceExistRequest,
org.apache.skywalking.banyandb.database.v1.BanyandbDatabase.GroupRegistryServiceExistResponse>(
service, METHODID_EXIST)))
.build();
}
private static abstract class GroupRegistryServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
GroupRegistryServiceBaseDescriptorSupplier() {}
@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("GroupRegistryService");
}
}
private static final class GroupRegistryServiceFileDescriptorSupplier
extends GroupRegistryServiceBaseDescriptorSupplier {
GroupRegistryServiceFileDescriptorSupplier() {}
}
private static final class GroupRegistryServiceMethodDescriptorSupplier
extends GroupRegistryServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
GroupRegistryServiceMethodDescriptorSupplier(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 (GroupRegistryServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new GroupRegistryServiceFileDescriptorSupplier())
.addMethod(getCreateMethod())
.addMethod(getUpdateMethod())
.addMethod(getDeleteMethod())
.addMethod(getGetMethod())
.addMethod(getListMethod())
.addMethod(getExistMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy