@java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                com.google.cloud.vision.v1.FaceAnnotation m =
                    input.readMessage(
                        com.google.cloud.vision.v1.FaceAnnotation.parser(), extensionRegistry);
                if (faceAnnotationsBuilder_ == null) {
                  ensureFaceAnnotationsIsMutable();
                  faceAnnotations_.add(m);
                } else {
                  faceAnnotationsBuilder_.addMessage(m);
                }
                break;
              } // case 10
            case 18:
              {
                com.google.cloud.vision.v1.EntityAnnotation m =
                    input.readMessage(
                        com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry);
                if (landmarkAnnotationsBuilder_ == null) {
                  ensureLandmarkAnnotationsIsMutable();
                  landmarkAnnotations_.add(m);
                } else {
                  landmarkAnnotationsBuilder_.addMessage(m);
                }
                break;
              } // case 18
            case 26:
              {
                com.google.cloud.vision.v1.EntityAnnotation m =
                    input.readMessage(
                        com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry);
                if (logoAnnotationsBuilder_ == null) {
                  ensureLogoAnnotationsIsMutable();
                  logoAnnotations_.add(m);
                } else {
                  logoAnnotationsBuilder_.addMessage(m);
                }
                break;
              } // case 26
            case 34:
              {
                com.google.cloud.vision.v1.EntityAnnotation m =
                    input.readMessage(
                        com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry);
                if (labelAnnotationsBuilder_ == null) {
                  ensureLabelAnnotationsIsMutable();
                  labelAnnotations_.add(m);
                } else {
                  labelAnnotationsBuilder_.addMessage(m);
                }
                break;
              } // case 34
            case 42:
              {
                com.google.cloud.vision.v1.EntityAnnotation m =
                    input.readMessage(
                        com.google.cloud.vision.v1.EntityAnnotation.parser(), extensionRegistry);
                if (textAnnotationsBuilder_ == null) {
                  ensureTextAnnotationsIsMutable();
                  textAnnotations_.add(m);
                } else {
                  textAnnotationsBuilder_.addMessage(m);
                }
                break;
              } // case 42
            case 50:
              {
                input.readMessage(
                    getSafeSearchAnnotationFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000080;
                break;
              } // case 50
            case 66:
              {
                input.readMessage(
                    getImagePropertiesAnnotationFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000100;
                break;
              } // case 66
            case 74:
              {
                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00001000;
                break;
              } // case 74
            case 90:
              {
                input.readMessage(
                    getCropHintsAnnotationFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000200;
                break;
              } // case 90
            case 98:
              {
                input.readMessage(
                    getFullTextAnnotationFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000040;
                break;
              } // case 98
            case 106:
              {
                input.readMessage(getWebDetectionFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000400;
                break;
              } // case 106
            case 114:
              {
                input.readMessage(
                    getProductSearchResultsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000800;
                break;
              } // case 114
            case 170:
              {
                input.readMessage(getContextFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00002000;
                break;
              } // case 170
            case 178:
              {
                com.google.cloud.vision.v1.LocalizedObjectAnnotation m =
                    input.readMessage(
                        com.google.cloud.vision.v1.LocalizedObjectAnnotation.parser(),
                        extensionRegistry);
                if (localizedObjectAnnotationsBuilder_ == null) {
                  ensureLocalizedObjectAnnotationsIsMutable();
                  localizedObjectAnnotations_.add(m);
                } else {
                  localizedObjectAnnotationsBuilder_.addMessage(m);
                }
                break;
              } // case 178
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
<pre>
Response to an image annotation request.
</pre>

Protobuf type {@code google.cloud.vision.v1.AnnotateImageResponse}
java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AnnotateImageResponse.java