private void buildPartialRepeatedFields(
        com.google.cloud.translate.v3beta1.TranslateTextResponse result) {
      if (translationsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          translations_ = java.util.Collections.unmodifiableList(translations_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.translations_ = translations_;
      } else {
        result.translations_ = translationsBuilder_.build();
      }
      if (glossaryTranslationsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          glossaryTranslations_ = java.util.Collections.unmodifiableList(glossaryTranslations_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.glossaryTranslations_ = glossaryTranslations_;
      } else {
        result.glossaryTranslations_ = glossaryTranslationsBuilder_.build();
      }
    }
Protobuf type {@code google.cloud.translation.v3beta1.TranslateTextResponse}
java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java