Skip to content

Commit

Permalink
fix: revert protoc to v3, update generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
fabrichter committed Oct 16, 2024
1 parent db14d91 commit 9b550dd
Show file tree
Hide file tree
Showing 9 changed files with 3,295 additions and 3,573 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.50.2)",
value = "by gRPC proto compiler (version 1.68.0)",
comments = "Source: synthesizer.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class SynthesizeServerGrpc {

private SynthesizeServerGrpc() {}

public static final String SERVICE_NAME = "lt_ml_server.SynthesizeServer";
public static final java.lang.String SERVICE_NAME = "lt_ml_server.SynthesizeServer";

// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<org.languagetool.grpc.Synthesizer.SynthesizeRequest,
Expand Down Expand Up @@ -92,31 +92,32 @@ public SynthesizeServerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallO

/**
*/
public static abstract class SynthesizeServerImplBase implements io.grpc.BindableService {
public interface AsyncService {

/**
*/
public void synthesize(org.languagetool.grpc.Synthesizer.SynthesizeRequest request,
default void synthesize(org.languagetool.grpc.Synthesizer.SynthesizeRequest request,
io.grpc.stub.StreamObserver<org.languagetool.grpc.Synthesizer.SynthesizeResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSynthesizeMethod(), responseObserver);
}
}

/**
* Base class for the server implementation of the service SynthesizeServer.
*/
public static abstract class SynthesizeServerImplBase
implements io.grpc.BindableService, AsyncService {

@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getSynthesizeMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.languagetool.grpc.Synthesizer.SynthesizeRequest,
org.languagetool.grpc.Synthesizer.SynthesizeResponse>(
this, METHODID_SYNTHESIZE)))
.build();
return SynthesizeServerGrpc.bindService(this);
}
}

/**
* A stub to allow clients to do asynchronous rpc calls to service SynthesizeServer.
*/
public static final class SynthesizeServerStub extends io.grpc.stub.AbstractAsyncStub<SynthesizeServerStub> {
public static final class SynthesizeServerStub
extends io.grpc.stub.AbstractAsyncStub<SynthesizeServerStub> {
private SynthesizeServerStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
Expand All @@ -138,8 +139,10 @@ public void synthesize(org.languagetool.grpc.Synthesizer.SynthesizeRequest reque
}

/**
* A stub to allow clients to do synchronous rpc calls to service SynthesizeServer.
*/
public static final class SynthesizeServerBlockingStub extends io.grpc.stub.AbstractBlockingStub<SynthesizeServerBlockingStub> {
public static final class SynthesizeServerBlockingStub
extends io.grpc.stub.AbstractBlockingStub<SynthesizeServerBlockingStub> {
private SynthesizeServerBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
Expand All @@ -160,8 +163,10 @@ public org.languagetool.grpc.Synthesizer.SynthesizeResponse synthesize(org.langu
}

/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service SynthesizeServer.
*/
public static final class SynthesizeServerFutureStub extends io.grpc.stub.AbstractFutureStub<SynthesizeServerFutureStub> {
public static final class SynthesizeServerFutureStub
extends io.grpc.stub.AbstractFutureStub<SynthesizeServerFutureStub> {
private SynthesizeServerFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
Expand Down Expand Up @@ -189,10 +194,10 @@ private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
private final SynthesizeServerImplBase serviceImpl;
private final AsyncService serviceImpl;
private final int methodId;

MethodHandlers(SynthesizeServerImplBase serviceImpl, int methodId) {
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
Expand Down Expand Up @@ -221,6 +226,18 @@ public io.grpc.stub.StreamObserver<Req> invoke(
}
}

public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getSynthesizeMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
org.languagetool.grpc.Synthesizer.SynthesizeRequest,
org.languagetool.grpc.Synthesizer.SynthesizeResponse>(
service, METHODID_SYNTHESIZE)))
.build();
}

private static abstract class SynthesizeServerBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
SynthesizeServerBaseDescriptorSupplier() {}
Expand All @@ -244,9 +261,9 @@ private static final class SynthesizeServerFileDescriptorSupplier
private static final class SynthesizeServerMethodDescriptorSupplier
extends SynthesizeServerBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
private final java.lang.String methodName;

SynthesizeServerMethodDescriptorSupplier(String methodName) {
SynthesizeServerMethodDescriptorSupplier(java.lang.String methodName) {
this.methodName = methodName;
}

Expand Down
Loading

0 comments on commit 9b550dd

Please sign in to comment.