private void buildPartialRepeatedFields(
        com.google.cloud.vertexai.api.GenerateContentRequest result) {
      if (contentsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          contents_ = java.util.Collections.unmodifiableList(contents_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.contents_ = contents_;
      } else {
        result.contents_ = contentsBuilder_.build();
      }
      if (toolsBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0)) {
          tools_ = java.util.Collections.unmodifiableList(tools_);
          bitField0_ = (bitField0_ & ~0x00000010);
        }
        result.tools_ = tools_;
      } else {
        result.tools_ = toolsBuilder_.build();
      }
      if (safetySettingsBuilder_ == null) {
        if (((bitField0_ & 0x00000080) != 0)) {
          safetySettings_ = java.util.Collections.unmodifiableList(safetySettings_);
          bitField0_ = (bitField0_ & ~0x00000080);
        }
        result.safetySettings_ = safetySettings_;
      } else {
        result.safetySettings_ = safetySettingsBuilder_.build();
      }
    }
<pre>
Request message for [PredictionService.GenerateContent].
</pre>

Protobuf type {@code google.cloud.vertexai.v1.GenerateContentRequest}
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequest.java