public void setMessageType(final @NotNull MessageType messageType) {
    messageModified = true;
    this.messageType = messageType;
  }
Creates a new message with the given number of parts
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/Message.java