Skip to content

Commit

Permalink
Replace GeneratedMessageV3 with AbstractMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
jinseopkim0 committed Jan 7, 2025
1 parent 2ccd6fd commit 13a63ce
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import com.google.common.collect.ImmutableList;
import com.google.protobuf.ByteString;
import com.google.protobuf.BytesValue;
import com.google.protobuf.GeneratedMessageV3;
import com.google.protobuf.AbstractMessage;
import com.google.protobuf.StringValue;
import io.grpc.BindableService;
import io.grpc.MethodDescriptor;
Expand Down Expand Up @@ -251,14 +251,14 @@ public ServerServiceDefinition bindService() {
BigtableGrpc.getReadRowsMethod(),
ServerCalls.asyncServerStreamingCall(
(req, observer) -> rpcs.add(ServerRpc.create(req, observer))));
ImmutableList<MethodDescriptor<? extends GeneratedMessageV3, ? extends GeneratedMessageV3>>
ImmutableList<MethodDescriptor<? extends AbstractMessage, ? extends AbstractMessage>>
unaryDescriptors =
ImmutableList.of(
BigtableGrpc.getMutateRowMethod(),
BigtableGrpc.getCheckAndMutateRowMethod(),
BigtableGrpc.getReadModifyWriteRowMethod());

for (MethodDescriptor<? extends GeneratedMessageV3, ? extends GeneratedMessageV3> desc :
for (MethodDescriptor<? extends AbstractMessage, ? extends AbstractMessage> desc :
unaryDescriptors) {
builder.addMethod(
desc.toBuilder().setType(MethodDescriptor.MethodType.SERVER_STREAMING).build(),
Expand Down

0 comments on commit 13a63ce

Please sign in to comment.