cz.proto.ingestion.IGSWorkerInternalServiceGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
package cz.proto.ingestion;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.47.0)",
comments = "Source: ingestion.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class IGSWorkerInternalServiceGrpc {
private IGSWorkerInternalServiceGrpc() {}
public static final String SERVICE_NAME = "cz.proto.ingestion.IGSWorkerInternalService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getFlushTabletMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "FlushTablet",
requestType = cz.proto.ingestion.Ingestion.FlushTabletRequest.class,
responseType = cz.proto.ingestion.Ingestion.FlushTabletResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getFlushTabletMethod() {
io.grpc.MethodDescriptor getFlushTabletMethod;
if ((getFlushTabletMethod = IGSWorkerInternalServiceGrpc.getFlushTabletMethod) == null) {
synchronized (IGSWorkerInternalServiceGrpc.class) {
if ((getFlushTabletMethod = IGSWorkerInternalServiceGrpc.getFlushTabletMethod) == null) {
IGSWorkerInternalServiceGrpc.getFlushTabletMethod = getFlushTabletMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "FlushTablet"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cz.proto.ingestion.Ingestion.FlushTabletRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cz.proto.ingestion.Ingestion.FlushTabletResponse.getDefaultInstance()))
.setSchemaDescriptor(new IGSWorkerInternalServiceMethodDescriptorSupplier("FlushTablet"))
.build();
}
}
}
return getFlushTabletMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static IGSWorkerInternalServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public IGSWorkerInternalServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new IGSWorkerInternalServiceStub(channel, callOptions);
}
};
return IGSWorkerInternalServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static IGSWorkerInternalServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public IGSWorkerInternalServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new IGSWorkerInternalServiceBlockingStub(channel, callOptions);
}
};
return IGSWorkerInternalServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static IGSWorkerInternalServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public IGSWorkerInternalServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new IGSWorkerInternalServiceFutureStub(channel, callOptions);
}
};
return IGSWorkerInternalServiceFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class IGSWorkerInternalServiceImplBase implements io.grpc.BindableService {
/**
*/
public void flushTablet(cz.proto.ingestion.Ingestion.FlushTabletRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFlushTabletMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getFlushTabletMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cz.proto.ingestion.Ingestion.FlushTabletRequest,
cz.proto.ingestion.Ingestion.FlushTabletResponse>(
this, METHODID_FLUSH_TABLET)))
.build();
}
}
/**
*/
public static final class IGSWorkerInternalServiceStub extends io.grpc.stub.AbstractAsyncStub {
private IGSWorkerInternalServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected IGSWorkerInternalServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new IGSWorkerInternalServiceStub(channel, callOptions);
}
/**
*/
public void flushTablet(cz.proto.ingestion.Ingestion.FlushTabletRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getFlushTabletMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class IGSWorkerInternalServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private IGSWorkerInternalServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected IGSWorkerInternalServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new IGSWorkerInternalServiceBlockingStub(channel, callOptions);
}
/**
*/
public cz.proto.ingestion.Ingestion.FlushTabletResponse flushTablet(cz.proto.ingestion.Ingestion.FlushTabletRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getFlushTabletMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class IGSWorkerInternalServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private IGSWorkerInternalServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected IGSWorkerInternalServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new IGSWorkerInternalServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture flushTablet(
cz.proto.ingestion.Ingestion.FlushTabletRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getFlushTabletMethod(), getCallOptions()), request);
}
}
private static final int METHODID_FLUSH_TABLET = 0;
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 IGSWorkerInternalServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(IGSWorkerInternalServiceImplBase 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_FLUSH_TABLET:
serviceImpl.flushTablet((cz.proto.ingestion.Ingestion.FlushTabletRequest) 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();
}
}
}
private static abstract class IGSWorkerInternalServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
IGSWorkerInternalServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return cz.proto.ingestion.Ingestion.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("IGSWorkerInternalService");
}
}
private static final class IGSWorkerInternalServiceFileDescriptorSupplier
extends IGSWorkerInternalServiceBaseDescriptorSupplier {
IGSWorkerInternalServiceFileDescriptorSupplier() {}
}
private static final class IGSWorkerInternalServiceMethodDescriptorSupplier
extends IGSWorkerInternalServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
IGSWorkerInternalServiceMethodDescriptorSupplier(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 (IGSWorkerInternalServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new IGSWorkerInternalServiceFileDescriptorSupplier())
.addMethod(getFlushTabletMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy