public Builder mergeFrom(com.google.cloud.translate.v3.TranslateTextResponse other) {
      if (other == com.google.cloud.translate.v3.TranslateTextResponse.getDefaultInstance())
        return this;
      if (translationsBuilder_ == null) {
        if (!other.translations_.isEmpty()) {
          if (translations_.isEmpty()) {
            translations_ = other.translations_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureTranslationsIsMutable();
            translations_.addAll(other.translations_);
          }
          onChanged();
        }
      } else {
        if (!other.translations_.isEmpty()) {
          if (translationsBuilder_.isEmpty()) {
            translationsBuilder_.dispose();
            translationsBuilder_ = null;
            translations_ = other.translations_;
            bitField0_ = (bitField0_ & ~0x00000001);
            translationsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getTranslationsFieldBuilder()
                    : null;
          } else {
            translationsBuilder_.addAllMessages(other.translations_);
          }
        }
      }
      if (glossaryTranslationsBuilder_ == null) {
        if (!other.glossaryTranslations_.isEmpty()) {
          if (glossaryTranslations_.isEmpty()) {
            glossaryTranslations_ = other.glossaryTranslations_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureGlossaryTranslationsIsMutable();
            glossaryTranslations_.addAll(other.glossaryTranslations_);
          }
          onChanged();
        }
      } else {
        if (!other.glossaryTranslations_.isEmpty()) {
          if (glossaryTranslationsBuilder_.isEmpty()) {
            glossaryTranslationsBuilder_.dispose();
            glossaryTranslationsBuilder_ = null;
            glossaryTranslations_ = other.glossaryTranslations_;
            bitField0_ = (bitField0_ & ~0x00000002);
            glossaryTranslationsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getGlossaryTranslationsFieldBuilder()
                    : null;
          } else {
            glossaryTranslationsBuilder_.addAllMessages(other.glossaryTranslations_);
          }
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }
Protobuf type {@code google.cloud.translation.v3.TranslateTextResponse}
java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java