private void buildPartialOneofs(com.google.cloud.vertexai.api.Part result) {
      result.dataCase_ = dataCase_;
      result.data_ = this.data_;
      if (dataCase_ == 2 && inlineDataBuilder_ != null) {
        result.data_ = inlineDataBuilder_.build();
      }
      if (dataCase_ == 3 && fileDataBuilder_ != null) {
        result.data_ = fileDataBuilder_.build();
      }
      if (dataCase_ == 5 && functionCallBuilder_ != null) {
        result.data_ = functionCallBuilder_.build();
      }
      if (dataCase_ == 6 && functionResponseBuilder_ != null) {
        result.data_ = functionResponseBuilder_.build();
      }
      if (dataCase_ == 8 && executableCodeBuilder_ != null) {
        result.data_ = executableCodeBuilder_.build();
      }
      if (dataCase_ == 9 && codeExecutionResultBuilder_ != null) {
        result.data_ = codeExecutionResultBuilder_.build();
      }
      result.metadataCase_ = metadataCase_;
      result.metadata_ = this.metadata_;
      if (metadataCase_ == 4 && videoMetadataBuilder_ != null) {
        result.metadata_ = videoMetadataBuilder_.build();
      }
    }
<pre>
A datatype containing media that is part of a multi-part `Content` message.

A `Part` consists of data which has an associated datatype. A `Part` can only
contain one of the accepted types in `Part.data`.

A `Part` must have a fixed IANA MIME type identifying the type and subtype
of the media if `inline_data` or `file_data` field is filled with raw bytes.
</pre>

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