public Builder mergeFrom(com.google.cloud.vertexai.api.Part other) {
      if (other == com.google.cloud.vertexai.api.Part.getDefaultInstance()) return this;
      switch (other.getDataCase()) {
        case TEXT:
          {
            dataCase_ = 1;
            data_ = other.data_;
            onChanged();
            break;
          }
        case INLINE_DATA:
          {
            mergeInlineData(other.getInlineData());
            break;
          }
        case FILE_DATA:
          {
            mergeFileData(other.getFileData());
            break;
          }
        case FUNCTION_CALL:
          {
            mergeFunctionCall(other.getFunctionCall());
            break;
          }
        case FUNCTION_RESPONSE:
          {
            mergeFunctionResponse(other.getFunctionResponse());
            break;
          }
        case EXECUTABLE_CODE:
          {
            mergeExecutableCode(other.getExecutableCode());
            break;
          }
        case CODE_EXECUTION_RESULT:
          {
            mergeCodeExecutionResult(other.getCodeExecutionResult());
            break;
          }
        case DATA_NOT_SET:
          {
            break;
          }
      }
      switch (other.getMetadataCase()) {
        case VIDEO_METADATA:
          {
            mergeVideoMetadata(other.getVideoMetadata());
            break;
          }
        case METADATA_NOT_SET:
          {
            break;
          }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }
<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