cz.proto.ingestion.v2.IngestionWorkerInternalServiceGrpc 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.v2;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.47.0)",
comments = "Source: ingestion_v2.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class IngestionWorkerInternalServiceGrpc {
private IngestionWorkerInternalServiceGrpc() {}
public static final String SERVICE_NAME = "cz.proto.ingestion.v2.IngestionWorkerInternalService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getMutateInternalMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "MutateInternal",
requestType = cz.proto.ingestion.v2.IngestionV2.MutateInternalRequest.class,
responseType = cz.proto.ingestion.v2.IngestionV2.MutateResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getMutateInternalMethod() {
io.grpc.MethodDescriptor getMutateInternalMethod;
if ((getMutateInternalMethod = IngestionWorkerInternalServiceGrpc.getMutateInternalMethod) == null) {
synchronized (IngestionWorkerInternalServiceGrpc.class) {
if ((getMutateInternalMethod = IngestionWorkerInternalServiceGrpc.getMutateInternalMethod) == null) {
IngestionWorkerInternalServiceGrpc.getMutateInternalMethod = getMutateInternalMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "MutateInternal"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cz.proto.ingestion.v2.IngestionV2.MutateInternalRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cz.proto.ingestion.v2.IngestionV2.MutateResponse.getDefaultInstance()))
.setSchemaDescriptor(new IngestionWorkerInternalServiceMethodDescriptorSupplier("MutateInternal"))
.build();
}
}
}
return getMutateInternalMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static IngestionWorkerInternalServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public IngestionWorkerInternalServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new IngestionWorkerInternalServiceStub(channel, callOptions);
}
};
return IngestionWorkerInternalServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static IngestionWorkerInternalServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public IngestionWorkerInternalServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new IngestionWorkerInternalServiceBlockingStub(channel, callOptions);
}
};
return IngestionWorkerInternalServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static IngestionWorkerInternalServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public IngestionWorkerInternalServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new IngestionWorkerInternalServiceFutureStub(channel, callOptions);
}
};
return IngestionWorkerInternalServiceFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class IngestionWorkerInternalServiceImplBase implements io.grpc.BindableService {
/**
*/
public void mutateInternal(cz.proto.ingestion.v2.IngestionV2.MutateInternalRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateInternalMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getMutateInternalMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cz.proto.ingestion.v2.IngestionV2.MutateInternalRequest,
cz.proto.ingestion.v2.IngestionV2.MutateResponse>(
this, METHODID_MUTATE_INTERNAL)))
.build();
}
}
/**
*/
public static final class IngestionWorkerInternalServiceStub extends io.grpc.stub.AbstractAsyncStub {
private IngestionWorkerInternalServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected IngestionWorkerInternalServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new IngestionWorkerInternalServiceStub(channel, callOptions);
}
/**
*/
public void mutateInternal(cz.proto.ingestion.v2.IngestionV2.MutateInternalRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getMutateInternalMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class IngestionWorkerInternalServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private IngestionWorkerInternalServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected IngestionWorkerInternalServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new IngestionWorkerInternalServiceBlockingStub(channel, callOptions);
}
/**
*/
public cz.proto.ingestion.v2.IngestionV2.MutateResponse mutateInternal(cz.proto.ingestion.v2.IngestionV2.MutateInternalRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getMutateInternalMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class IngestionWorkerInternalServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private IngestionWorkerInternalServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected IngestionWorkerInternalServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new IngestionWorkerInternalServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture mutateInternal(
cz.proto.ingestion.v2.IngestionV2.MutateInternalRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getMutateInternalMethod(), getCallOptions()), request);
}
}
private static final int METHODID_MUTATE_INTERNAL = 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 IngestionWorkerInternalServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(IngestionWorkerInternalServiceImplBase 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_MUTATE_INTERNAL:
serviceImpl.mutateInternal((cz.proto.ingestion.v2.IngestionV2.MutateInternalRequest) 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 IngestionWorkerInternalServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
IngestionWorkerInternalServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return cz.proto.ingestion.v2.IngestionV2.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("IngestionWorkerInternalService");
}
}
private static final class IngestionWorkerInternalServiceFileDescriptorSupplier
extends IngestionWorkerInternalServiceBaseDescriptorSupplier {
IngestionWorkerInternalServiceFileDescriptorSupplier() {}
}
private static final class IngestionWorkerInternalServiceMethodDescriptorSupplier
extends IngestionWorkerInternalServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
IngestionWorkerInternalServiceMethodDescriptorSupplier(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 (IngestionWorkerInternalServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new IngestionWorkerInternalServiceFileDescriptorSupplier())
.addMethod(getMutateInternalMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy