@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:
              {
                parent_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                sourceLanguageCode_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                java.lang.String s = input.readStringRequireUtf8();
                ensureTargetLanguageCodesIsMutable();
                targetLanguageCodes_.add(s);
                break;
              } // case 26
            case 34:
              {
                com.google.cloud.translate.v3.BatchDocumentInputConfig m =
                    input.readMessage(
                        com.google.cloud.translate.v3.BatchDocumentInputConfig.parser(),
                        extensionRegistry);
                if (inputConfigsBuilder_ == null) {
                  ensureInputConfigsIsMutable();
                  inputConfigs_.add(m);
                } else {
                  inputConfigsBuilder_.addMessage(m);
                }
                break;
              } // case 34
            case 42:
              {
                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000010;
                break;
              } // case 42
            case 50:
              {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String> models__ =
                    input.readMessage(
                        ModelsDefaultEntryHolder.defaultEntry.getParserForType(),
                        extensionRegistry);
                internalGetMutableModels()
                    .getMutableMap()
                    .put(models__.getKey(), models__.getValue());
                bitField0_ |= 0x00000020;
                break;
              } // case 50
            case 58:
              {
                com.google.protobuf.MapEntry<
                        java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
                    glossaries__ =
                        input.readMessage(
                            GlossariesDefaultEntryHolder.defaultEntry.getParserForType(),
                            extensionRegistry);
                internalGetMutableGlossaries()
                    .ensureBuilderMap()
                    .put(glossaries__.getKey(), glossaries__.getValue());
                bitField0_ |= 0x00000040;
                break;
              } // case 58
            case 66:
              {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
                    formatConversions__ =
                        input.readMessage(
                            FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(),
                            extensionRegistry);
                internalGetMutableFormatConversions()
                    .getMutableMap()
                    .put(formatConversions__.getKey(), formatConversions__.getValue());
                bitField0_ |= 0x00000080;
                break;
              } // case 66
            case 82:
              {
                customizedAttribution_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000100;
                break;
              } // case 82
            case 88:
              {
                enableShadowRemovalNativePdf_ = input.readBool();
                bitField0_ |= 0x00000200;
                break;
              } // case 88
            case 96:
              {
                enableRotationCorrection_ = input.readBool();
                bitField0_ |= 0x00000400;
                break;
              } // case 96
            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>
The BatchTranslateDocument request.
</pre>

Protobuf type {@code google.cloud.translation.v3.BatchTranslateDocumentRequest}
java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java