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

chore: bumping grpc to 1.54.0 #1570

Merged
merged 1 commit into from
Mar 28, 2023
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
2 changes: 1 addition & 1 deletion gapic-generator-java-pom-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<!-- External dependencies, especially gRPC and Protobuf version, should be
consistent across modules in this repository -->
<javax.annotation-api.version>1.3.2</javax.annotation-api.version>
<grpc.version>1.53.0</grpc.version>
<grpc.version>1.54.0</grpc.version>
<google.auth.version>1.16.0</google.auth.version>
<gson.version>2.10.1</gson.version>
<guava.version>31.1-jre</guava.version>
Expand Down
2 changes: 1 addition & 1 deletion gax-java/dependencies.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ version.gax_httpjson=0.108.4-SNAPSHOT
# with the sources.
version.com_google_protobuf=3.21.10
version.google_java_format=1.15.0
version.io_grpc=1.53.0
version.io_grpc=1.54.0

# Maven artifacts.
# Note, the actual name of each property matters (bazel build scripts depend on it).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,157 +371,95 @@ public ComplianceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions

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

/**
*/
public void repeatDataBody(com.google.showcase.v1beta1.RepeatRequest request,
default void repeatDataBody(com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver<com.google.showcase.v1beta1.RepeatResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataBodyMethod(), responseObserver);
}

/**
*/
public void repeatDataBodyInfo(com.google.showcase.v1beta1.RepeatRequest request,
default void repeatDataBodyInfo(com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver<com.google.showcase.v1beta1.RepeatResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataBodyInfoMethod(), responseObserver);
}

/**
*/
public void repeatDataQuery(com.google.showcase.v1beta1.RepeatRequest request,
default void repeatDataQuery(com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver<com.google.showcase.v1beta1.RepeatResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataQueryMethod(), responseObserver);
}

/**
*/
public void repeatDataSimplePath(com.google.showcase.v1beta1.RepeatRequest request,
default void repeatDataSimplePath(com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver<com.google.showcase.v1beta1.RepeatResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataSimplePathMethod(), responseObserver);
}

/**
*/
public void repeatDataPathResource(com.google.showcase.v1beta1.RepeatRequest request,
default void repeatDataPathResource(com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver<com.google.showcase.v1beta1.RepeatResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataPathResourceMethod(), responseObserver);
}

/**
*/
public void repeatDataPathTrailingResource(com.google.showcase.v1beta1.RepeatRequest request,
default void repeatDataPathTrailingResource(com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver<com.google.showcase.v1beta1.RepeatResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataPathTrailingResourceMethod(), responseObserver);
}

/**
*/
public void repeatDataBodyPut(com.google.showcase.v1beta1.RepeatRequest request,
default void repeatDataBodyPut(com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver<com.google.showcase.v1beta1.RepeatResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataBodyPutMethod(), responseObserver);
}

/**
*/
public void repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest request,
default void repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver<com.google.showcase.v1beta1.RepeatResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataBodyPatchMethod(), responseObserver);
}

/**
*/
public void getEnum(com.google.showcase.v1beta1.EnumRequest request,
default void getEnum(com.google.showcase.v1beta1.EnumRequest request,
io.grpc.stub.StreamObserver<com.google.showcase.v1beta1.EnumResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEnumMethod(), responseObserver);
}

/**
*/
public void verifyEnum(com.google.showcase.v1beta1.EnumResponse request,
default void verifyEnum(com.google.showcase.v1beta1.EnumResponse request,
io.grpc.stub.StreamObserver<com.google.showcase.v1beta1.EnumResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyEnumMethod(), responseObserver);
}
}

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

@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getRepeatDataBodyMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.RepeatRequest,
com.google.showcase.v1beta1.RepeatResponse>(
this, METHODID_REPEAT_DATA_BODY)))
.addMethod(
getRepeatDataBodyInfoMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.RepeatRequest,
com.google.showcase.v1beta1.RepeatResponse>(
this, METHODID_REPEAT_DATA_BODY_INFO)))
.addMethod(
getRepeatDataQueryMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.RepeatRequest,
com.google.showcase.v1beta1.RepeatResponse>(
this, METHODID_REPEAT_DATA_QUERY)))
.addMethod(
getRepeatDataSimplePathMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.RepeatRequest,
com.google.showcase.v1beta1.RepeatResponse>(
this, METHODID_REPEAT_DATA_SIMPLE_PATH)))
.addMethod(
getRepeatDataPathResourceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.RepeatRequest,
com.google.showcase.v1beta1.RepeatResponse>(
this, METHODID_REPEAT_DATA_PATH_RESOURCE)))
.addMethod(
getRepeatDataPathTrailingResourceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.RepeatRequest,
com.google.showcase.v1beta1.RepeatResponse>(
this, METHODID_REPEAT_DATA_PATH_TRAILING_RESOURCE)))
.addMethod(
getRepeatDataBodyPutMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.RepeatRequest,
com.google.showcase.v1beta1.RepeatResponse>(
this, METHODID_REPEAT_DATA_BODY_PUT)))
.addMethod(
getRepeatDataBodyPatchMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.RepeatRequest,
com.google.showcase.v1beta1.RepeatResponse>(
this, METHODID_REPEAT_DATA_BODY_PATCH)))
.addMethod(
getGetEnumMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.EnumRequest,
com.google.showcase.v1beta1.EnumResponse>(
this, METHODID_GET_ENUM)))
.addMethod(
getVerifyEnumMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.EnumResponse,
com.google.showcase.v1beta1.EnumResponse>(
this, METHODID_VERIFY_ENUM)))
.build();
return ComplianceGrpc.bindService(this);
}
}

/**
* A stub to allow clients to do asynchronous rpc calls to service Compliance.
*/
public static final class ComplianceStub extends io.grpc.stub.AbstractAsyncStub<ComplianceStub> {
public static final class ComplianceStub
extends io.grpc.stub.AbstractAsyncStub<ComplianceStub> {
private ComplianceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
Expand Down Expand Up @@ -615,8 +553,10 @@ public void verifyEnum(com.google.showcase.v1beta1.EnumResponse request,
}

/**
* A stub to allow clients to do synchronous rpc calls to service Compliance.
*/
public static final class ComplianceBlockingStub extends io.grpc.stub.AbstractBlockingStub<ComplianceBlockingStub> {
public static final class ComplianceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<ComplianceBlockingStub> {
private ComplianceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
Expand Down Expand Up @@ -700,8 +640,10 @@ public com.google.showcase.v1beta1.EnumResponse verifyEnum(com.google.showcase.v
}

/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service Compliance.
*/
public static final class ComplianceFutureStub extends io.grpc.stub.AbstractFutureStub<ComplianceFutureStub> {
public static final class ComplianceFutureStub
extends io.grpc.stub.AbstractFutureStub<ComplianceFutureStub> {
private ComplianceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
Expand Down Expand Up @@ -810,10 +752,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 ComplianceImplBase serviceImpl;
private final AsyncService serviceImpl;
private final int methodId;

MethodHandlers(ComplianceImplBase serviceImpl, int methodId) {
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
Expand Down Expand Up @@ -878,6 +820,81 @@ public io.grpc.stub.StreamObserver<Req> invoke(
}
}

public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getRepeatDataBodyMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.RepeatRequest,
com.google.showcase.v1beta1.RepeatResponse>(
service, METHODID_REPEAT_DATA_BODY)))
.addMethod(
getRepeatDataBodyInfoMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.RepeatRequest,
com.google.showcase.v1beta1.RepeatResponse>(
service, METHODID_REPEAT_DATA_BODY_INFO)))
.addMethod(
getRepeatDataQueryMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.RepeatRequest,
com.google.showcase.v1beta1.RepeatResponse>(
service, METHODID_REPEAT_DATA_QUERY)))
.addMethod(
getRepeatDataSimplePathMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.RepeatRequest,
com.google.showcase.v1beta1.RepeatResponse>(
service, METHODID_REPEAT_DATA_SIMPLE_PATH)))
.addMethod(
getRepeatDataPathResourceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.RepeatRequest,
com.google.showcase.v1beta1.RepeatResponse>(
service, METHODID_REPEAT_DATA_PATH_RESOURCE)))
.addMethod(
getRepeatDataPathTrailingResourceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.RepeatRequest,
com.google.showcase.v1beta1.RepeatResponse>(
service, METHODID_REPEAT_DATA_PATH_TRAILING_RESOURCE)))
.addMethod(
getRepeatDataBodyPutMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.RepeatRequest,
com.google.showcase.v1beta1.RepeatResponse>(
service, METHODID_REPEAT_DATA_BODY_PUT)))
.addMethod(
getRepeatDataBodyPatchMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.RepeatRequest,
com.google.showcase.v1beta1.RepeatResponse>(
service, METHODID_REPEAT_DATA_BODY_PATCH)))
.addMethod(
getGetEnumMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.EnumRequest,
com.google.showcase.v1beta1.EnumResponse>(
service, METHODID_GET_ENUM)))
.addMethod(
getVerifyEnumMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.showcase.v1beta1.EnumResponse,
com.google.showcase.v1beta1.EnumResponse>(
service, METHODID_VERIFY_ENUM)))
.build();
}

private static abstract class ComplianceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
ComplianceBaseDescriptorSupplier() {}
Expand Down
Loading