code: public static MySQLCommandPacketType getCommandPacketType(final MySQLPacketPayload payload) {
          Preconditions.checkArgument(0 == payload.readInt1(), "Sequence ID of MySQL command packet must be `0`.");
          return MySQLCommandPacketType.valueOf(payload.readInt1());
      }
docs: Get command packet type.
  
  @param payload packet payload for MySQL
  @return command packet type for MySQL