Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protoc version update #10942

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading