diff --git a/integration-testing/src/main/java/com/google/net/stubby/testing/integration/TestServiceImpl.java b/integration-testing/src/main/java/com/google/net/stubby/testing/integration/TestServiceImpl.java
index <HASH>..<HASH> 100644
--- a/integration-testing/src/main/java/com/google/net/stubby/testing/integration/TestServiceImpl.java
+++ b/integration-testing/src/main/java/com/google/net/stubby/testing/integration/TestServiceImpl.java
@@ -90,7 +90,7 @@ public class TestServiceImpl implements TestServiceGrpc.TestService {
   public void unaryCall(SimpleRequest req,
         StreamObserver<SimpleResponse> responseObserver) {
     SimpleResponse.Builder responseBuilder = SimpleResponse.newBuilder();
-    if (req.hasResponseType() && req.hasResponseSize()) {
+    if (req.getResponseSize() != 0) {
       boolean compressable = compressableResponse(req.getResponseType());
       ByteString dataBuffer = compressable ? compressableBuffer : uncompressableBuffer;
       // For consistency with the c++ TestServiceImpl, use a random offset for unary calls.
Nano proto and Proto3 do no include fields that have their default values in the wire format.
Avoid using hasxxxx

-------------
Created by MOE: <URL>